B
Bingo
I have an Outlook MailItem, oMapiMail for an email in the
Inbox. Now I need to build the Attachments object for a
new email based on the Attachments object of oMapiMail.
The following code is able to add the attachments but
they cannot be re-opened. What's the right way to do
this? Thanks.
For Each oMapiRemoteAttachment In
oMapiMail.Attachments
oMapiAttachment.SaveAsFile "c:\1"
Set oMapiAttachmentNew =
oMapiMailNew.Attachments.Add("c:\1",
oMapiAttachment.Type, oMapiAttachment.Position,
oMapiAttachment.DisplayName)
Next
Inbox. Now I need to build the Attachments object for a
new email based on the Attachments object of oMapiMail.
The following code is able to add the attachments but
they cannot be re-opened. What's the right way to do
this? Thanks.
For Each oMapiRemoteAttachment In
oMapiMail.Attachments
oMapiAttachment.SaveAsFile "c:\1"
Set oMapiAttachmentNew =
oMapiMailNew.Attachments.Add("c:\1",
oMapiAttachment.Type, oMapiAttachment.Position,
oMapiAttachment.DisplayName)
Next