note 58761 added to function.mail

From: Date: Tue, 15 Nov 2005 11:43:44 +0000
Subject: note 58761 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-98584@lists.php.net to get a copy of this message
For me, WinXP, EasyPHP 1.8.0.1, sending a mail with the headers lines separated by : \r\n $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; When I put the script online, and call it in order to send mail, the html is displayed in the mail client (tested Outlook Express and Thunderbird) when you want to read the message sent by php. Some of the headers are considered like text (but it works when sent from local). Solution : not use \r\n but only \n. ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58761 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58761&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58761&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58761&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58761&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58761&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58761&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58761&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58761&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98584) next »