Yeah, that and imap_savebody($imap, $fn, $i); work. Thanks Richard Lynch wrote: > > 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? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- View this message in context: http://www.nabble.com/Save-email-as-.eml-file-tf4103444.html#a11719234 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php