VB: Export in msg format

  • Thread starter Thread starter Thomas
  • Start date Start date
T

Thomas

Hello.

I wonder, if it´s possible to create an "msg" File out of a VB
Scripting project. Background: The script gets e-Mail messages via POP3
in different formats (HTML, Text only, with or w/o attachments ...) and
generates a workflow. At the end of this process, the mail should be
saved in an outlook mail format on the file system.

Are there any possiblities to do that?

Thanks.
Thomas
 
I'm assuming you're automating the Outlook Object Model? If so, just use
MailItem.SaveAS(3) '3 = olMsg
 
Be aware of the security warnings when saving email with a VB script.
In case the only action is SaveAs, you may lower that particular
security setting in Exchange.

Eric schreef:
 
You will not receive these security warnings in Outlook 2003 if your script
is in a non-one-off, published from and you derive all objects from the
intrinsic Application and Item objects.
 
Back
Top