Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: Cannot create new Attachment and add it to MailItem.Attachments

$
0
0
Hi,

just came across your request. What exactly are you trying to do? I guess "mail" is a NetOffice.OutlookApi.MailItem? In this case the "attachment" should be a normal string, e.g.
Outlook.MailItem myMessage = (Outlook.MailItem)outApp.CreateItem(NetOffice.OutlookApi.Enums.OlItemType.olMailItem);
myMessage.Attachments.Add("C:\\test.txt");

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>