Re: Send HTML/plain text email using PHP
| From: | Curt Zirzow | Date: | Fri, 28 May 2004 14:48:27 +0000 |
| Subject: | Re: Send HTML/plain text email using PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187123@lists.php.net to get a copy of this message | ||
* Thus wrote Matt MacLeod (matt@bigbarn.co.uk):
> ...
>
> $headers .= "Reply-To: vinciane@london21.org\n";
> $nonhtml = strip_tags($emailsend);
> // This is the important part!
> // This content type identifies the content of the message.
> // The boundary delimits the plain text and html sections.
> // The value of the boundary can be anything - you can even use the
> same one we used here
> $headers .= "Content-Type: multipart/alternative;
> boundary=\"----=_NextPart_000_002C_01BFABBF.4A7D6BA0\"\n\n";
You've just signified end of headers with the \n\n perhaps you
meant \r\n.
> $headers .= "X-Priority: 1\r\n";
> $headers .= "X-MSMail-Priority: High\r\n";
> $headers .= "X-Mailer: PHP/" . phpversion()."\r\n";
> $headers .= "X-Sender: vinciane@london21.org\r\n";
> $headers .= "Return-Path: vinciane@london21.org\r\n";
Adding Return-Path: is useless since it will be ignored.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."