note 46044 deleted from function.mail by aidan

From: Date: Tue, 28 Sep 2004 12:10:46 +0000
Subject: note 46044 deleted from function.mail by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77487@lists.php.net to get a copy of this message
Note Submitter: fcp at redycomercio dot com ---- Some times you may loose headers and not able to display your html email correctly. This happen to me when the underlying SMTP server was a QMail. To fix this error change the EmailNewLine to be "\n" instead of "\r\n". example: <? $message="<FONT SIZE='14' COLOR='#FF0033'><I><B>HTML EMAIL</B></I></FONT>"; //$headers = "MIME-Version: 1.0\r\n"; $headers = "MIME-Version: 1.0\n"; //$headers .= "Content-type: text/html; charset=iso-8859-15\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-15\n"; //$headers .= "From: someone@someone.com\r\n"; $headers .= "From: someone@someone.com\n"; mail("user@example.com", "Html e-mail example",$message, $headers); ?> Fabio Castaneda www.redycomercio.com www.netandcommerce.com

« previous php.notes (#77487) next »