tags:

views:

74

answers:

3

I am trying to create a file that is essentially an e-mail with headers and all in php and then present it to the user. The User would open it in outlook and then send.

+4  A: 

Yes, it is possible. *.eml and *.msg are plaintext files with proper encoding and headers. If you can create message according to spec, it will be read by Outlook.

smok1
Thanks, the spec is very extensive but I figured out that you can leave out everything except for the essentials and outlook will still accept it.
Biff
Do not forget encoding, since without encoding you will have problems with national characters.
smok1
+1  A: 

I think what you want is to write a file in .msg format.

The only thing I could find is a commercial .NET library, Aspose, but nothing using PHP.

JeffH
A: 

Its great that you resolved this, can you tell me exactly how you accomplished this with php? Source code?