Attachments.add type

  • Thread starter Thread starter vba_prog
  • Start date Start date
V

vba_prog

Does anyone know how to attach an email to a new message programatically as
an RFC822 attachment?
I need to emulate a user creating a new email and then dragging an email
from their inbox to the new email to attach it.

I tried:
newMsg.Attachments.Add "c:\test.eml", olRFC822
where c:\test.eml is an RFC822 export of the message, but that just added a
file:/// hyperlink into the email.
 
Outlook does not natively support RFC 822 messages. olRFC822 constant is
defined by the Redemption library, not OOM.
If yu add an embedded message attachment, it will be converted to RFC 822
when the message is sent through an SMTP server.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top