note 73907 deleted from ref.mail by danbrown

From: Date: Sun, 17 May 2009 20:09:32 +0000
Subject: note 73907 deleted from ref.mail by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155344@lists.php.net to get a copy of this message
Note Submitter: admin at seoandstuff dot com ---- I just spent a few hours working on getting a simple html formatted email to work on outlook. This is the end result: <?php $body="<em>HTML</em> formatted <strong>Message</strong"; $headers = "From: info@example.com \r\n"; $headers.= "Content-Type: text/html; charset=ISO-8859-1 "; $headers .= "MIME-Version: 1.0 "; /*notice there aren't any \r\n after the second two header additions. This is what made this version work correctly*/ mail("john@example.com", "An HTML Message", $body, $headers); ?>

« previous php.notes (#155344) next »