Jump to content

Sending text and html in one email


bcamp1973

Recommended Posts

i've put close to 10 hours into this today and i'm not getting results. i simply want to create and send emails that can be viewed by both text based and html based email clients. i've scoured the PHP manual and related comments and nothing is working. I also don't want to use a big bloated open source library as my needs are simple...text...html...that's it.  can someone point me to code that's working for them (across all popular email clients) or to a tutorial that actually works?  My frustration is starting to get the best of me i think :(

Link to comment
https://forums.phpfreaks.com/topic/45371-sending-text-and-html-in-one-email/
Share on other sites

Try ur luck on this one...

 

<?php 
mail('[email protected]', 'Subject', 
    '<html><body><p>Your <i>message</i> here.</p></body></html>', 
    "To: The Receiver <[email protected]>\n" . 
    "From: The Sender <[email protected]>\n" . 
    "MIME-Version: 1.0\n" . 
    "Content-type: text/html; charset=iso-8859-1"); 
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.