Re: Attachment To MailItem
Dont you need to use :
Code:
myEmail.Attachments.Add(....?)
(Guessing here).
You may have to make an attachment object first then add that object to the attachments collection. Should be mentioned in the help files.
Re: Attachment To MailItem
You need to use .CreateItemFromTemplate to open the attached mailitem.
Heres one of my c0d examples:
http://www.vbforums.com/showthread.php?t=347353
Re: Attachment To MailItem
This is my situation:
I've got a Task Item wich contains an email as attachment.
This email I'd like to set in an EmailItem Object.
But this won't work cause the Email is an attachmentItem.
So I need somehow convert this attachment into a mailobject or something like that.
But if this cannot be done then so be it...
Re: Attachment To MailItem
It can be done. Just need to modify my code example to initially get the TaskItem instead of a mailItem. Then CreateItemFromTemplate to open the saved mailitem and moved into your Inbox.
Re: Attachment To MailItem
Thanks Yoda!
This is probably the only solution...