mrheff Posted March 7, 2007 Share Posted March 7, 2007 hi guys, me again thanks for your last help.... Im now making a small ecard system, and have made a nice html mail page to provide the working of this, its simple to use but i wann try to have plain text as well for ppl who choose not to use/view html mail (with just an include of the message from the card and a link to the image rather than image itself) But when i try to put more headings on the mail the whole thing stops workin... boooohooo here what it looks like... <? $to = "[email protected]"; $from = "[email protected]"; $subject = "HTML tester"; //begin message $message = <<<EOF <html> <body bgcolor="#ffccff"> <center> <b>I am reciving an ugly HTML email......</b> <br> <font color="red">But no html BAH HUMBUG"!!!!!</font> <br> <a href="http://www.randomlink.com/">link</a> </center> <br><br>mail recieved,<br> Regards<br>Heff </body> </html> EOF; $message .= 'hello'; //end of message $headers = "From: $from\r\n"; $headers .= "Content-type: text/html\r\n"; $headers .= "MIME-Version: 1.0rn"; $to = "$to"; // this will send to both emails at the same time. // so shall we send this or what? mail($to, $subject, $message, $headers); ?> So in short im trying to find out where to put the html text im guessing $plaintext var should achieve that but its how to include that and where? many thanks guys and gals i know your time is preciouse. outies, Mrheff. Link to comment https://forums.phpfreaks.com/topic/41651-easy-to-mail-but-hard-to-include-a-text-version/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.