Re: plain text email message format
| From: | Angelo Zanetti | Date: | Thu, 13 Apr 2006 01:13:50 +0000 |
| Subject: | Re: plain text email message format | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233838@lists.php.net to get a copy of this message | ||
Schalk wrote:
Greetings All, Is the code below the correct way to 'build' the message for plain text email? $message = "Message From: ".$firstName. " " .$lastName." First Name: ".$firstName." Last Name: ".$lastName." Address: ".$address." Home phone: ".$homePhone." Best time to contact: ".$bestTime." Email: ".$email."; Thanks!just look at the MIME content type of the email that you are sending out: HTML: Content-Type: text/html; charset = "iso-8859-1" Plain Text: Content-Type: text/plain; charset = "iso-8859-1" hope this helps. By the way this gets set in the header.