Html E-mail Headers

liunx

Guest
Hi,<br /><br />How can I combine a 'From:' and a 'Content-type:' Header. What I'm trying to do is send HTML through E-Mail.<br /><br />Here is shat I have so far:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->mail([Address], [Subject], [Message], "From: BSA Troop 6 <[email protected]>\r\nContent-type: text/html\r\n");<!--c2--></div><!--ec2--><br /><br /><br />I hope this made sense.<br /><br /><br />Many Thanks,<br />Dman8568<!--content-->
[bump]<br /><br />I'm sorry... I know I'm not suposed to do this...<!--content-->
<!--quoteo(post=176498:date=Apr 26 2006, 05:57 PM:name=Dman8568)--><div class='quotetop'>QUOTE(Dman8568 @ Apr 26 2006, 05:57 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=176498"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->[bump]<br /><br />I'm sorry... I know I'm not suposed to do this...<!--QuoteEnd--></div><!--QuoteEEnd--><br />You're right. I'm sorry nobody has come along with an answer for you, but please don't bump threads.<br /><br />My suggestion would be to poke around on php.net. They have whole pages for every function, with user-submitted examples for different implemenations. You can find mail() <a href="http://us2.php.net/manual/en/ref.mail.php" target="_blank">here</a>.<!--content-->
<a href="http://www.zend.com/zend/trick/html-email.php" target="_blank">Zend.com</a> is a good source for this.<!--content-->
Basically like this<br /><br />"From: "NAMEHERE" <EMAILADDRESSHERE>\nX-Mailer: Lazarus Guestbook\nContent-Type: text/html; charset="UTF-8"<br /><br />The above is lifted from Lazarus as you can see.<!--content-->
 
Back
Top