Anybody knows how to do this? I got all the information of the email (body, subject, from , to, cc, bcc) and need to generate an .eml file out of it.
Asked
Active
Viewed 434 times
0
-
Perhaps you could add a description, a link, or some other indication of what an '.eml' file is or what software produces and consumes it? – Robᵩ Sep 03 '14 at 21:59
-
here -> http://whatis.techtarget.com/fileformat/EML-Microsoft-Outlook-Express-mail-message-MIME-RFC-822 – R. Stark Sep 03 '14 at 22:01
-
Do you have the data stored in an `email.message.Message`? If so, just do: `open('output.eml', 'w').write(str(my_message))`. – Robᵩ Sep 03 '14 at 22:21