Re: Email - Best practice/advice please
| From: | Per Jessen | Date: | Fri, 12 Sep 2008 12:57:10 +0000 |
| Subject: | Re: Email - Best practice/advice please | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279974@lists.php.net to get a copy of this message | ||
Richard Heyes wrote:
>> I use here-doc plus exec(sendmail).
>
> Why?
Using heredocs is probably habit, but it's also easy, and I like keeping
the email template in the code. I use exec(sendmail) because it allows
me to set the Return-Path.
For purely internal stuff, I just as often use plain mail().
/Per Jessen, Zürich