NetTalk Central

NetTalk E-Mail => E-Mail - Ask For Help => Topic started by: hkalmbach on October 27, 2017, 05:43:39 AM

Title: Saving an Email in a msg or em file
Post by: hkalmbach on October 27, 2017, 05:43:39 AM
Hello,

a customer who uses the smtp emails wants the emails be saved as MSG or EML file for documentation. That means directly before or after sending the email it should be saved as file.
Best would be if it could be saved in a common used format like MSG or EML.
Is this possible? How?

Thanks for help.

Cheers
Heinz
Title: Re: Saving an Email in a msg or em file
Post by: Bruce on October 27, 2017, 07:21:43 AM
EML is the "raw text" of the email - which is in the .WholeMessage property.
I think you can save it from there pretty much anytime after you've downloaded the mail.

str.setvalue(clip(net.wholemessage))
str.savefile('bob1.eml')

cheers
Bruce