note 73907 added to ref.mail

From: Date: Thu, 15 Mar 2007 04:25:36 +0000
Subject: note 73907 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-124468@lists.php.net to get a copy of this message
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@mycompany.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@pacificprime.com", "An HTML Message", $body, $headers); ?> ---- Server IP: 60.191.90.110 Probable Submitter: 58.33.148.155 ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit -- https://master.php.net/note/edit/73907 Del: integrated -- https://master.php.net/note/delete/73907/integrated Del: useless -- https://master.php.net/note/delete/73907/useless Del: bad code -- https://master.php.net/note/delete/73907/bad+code Del: spam -- https://master.php.net/note/delete/73907/spam Del: non-english -- https://master.php.net/note/delete/73907/non-english Del: in docs -- https://master.php.net/note/delete/73907/in+docs Del: other reasons-- https://master.php.net/note/delete/73907 Reject -- https://master.php.net/note/reject/73907 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124468) next »