NetTalk Central

Author Topic: Saving an Email in a msg or em file  (Read 2893 times)

hkalmbach

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • Email
Saving an Email in a msg or em file
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: Saving an Email in a msg or em file
« Reply #1 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