Re: sending mail from localhost
| From: | Richard Lynch | Date: | Wed, 13 Jun 2007 17:59:00 +0000 |
| Subject: | Re: sending mail from localhost | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256908@lists.php.net to get a copy of this message | ||
On Wed, June 13, 2007 8:51 am, Daniel Brown wrote:
> $from = "webmaster@example.com";
> //$reply_to = "webmaster@example.com"; // Same address, so not needed.
Some spam filters and some email clients will behave rather badly if
you don't have Reply-to: as well.
Use it.
> $headers .= "X-Mailer: PHP".phpversion()."\r\n"; // Headers ALWAYS
> need \r\n
The last header does not NEED \r\n because PHP is going to trim that
off and put \r\n\r\n between headers and body anyway.
But it's good practice to put it in there so that when you add yet
another header, you don't mistakenly leave it out where it is needed.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?