Re: Save email as .eml file
| From: | Richard Lynch | Date: | Fri, 20 Jul 2007 23:20:50 +0000 |
| Subject: | Re: Save email as .eml file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-259257@lists.php.net to get a copy of this message | ||
On Wed, July 18, 2007 8:56 am, Rosen wrote:
> Is there a way to create e-mail with PHP and save it to .eml file
> (without sending)?
I dunno if MS adds anything funky to a .eml file, but I suspect that
it's just the raw headers and then the body...
So pretty much file_put_contents would do it, if you can forge a
halfway-reasonable set of headers.
Open up an .eml file in a text editor and see what it looks like.
--
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?