没人回答啊。在网上搜索的结果,应该是没有什么办法实现我说的功能。如果只针对Outlook的话,可以使用Microsoft.Office.Interop.Outlook名字空间下的类来实现。代码如下: using Outlook = Microsoft.Office.Interop.Outlook; Outlook.Application app = new Outlook.Application(); Outlook.MailItem mail = (Outlook.MailItem)app.CreateItem(Outlook.OlItemType.olMailItem); mail.Attachments.Add(attachFilename, Outlook.OlAttachmentType.olEmbeddeditem, 1, attachFilename); mail.Display(true);
using Outlook = Microsoft.Office.Interop.Outlook;
Outlook.Application app = new Outlook.Application();
Outlook.MailItem mail = (Outlook.MailItem)app.CreateItem(Outlook.OlItemType.olMailItem); mail.Attachments.Add(attachFilename, Outlook.OlAttachmentType.olEmbeddeditem,
1, attachFilename); mail.Display(true);