1
我有以下代码:嵌入图片Outlook电子邮件身体
string imageSrc = "C:\\Documents and Settings\\menonsu\\Desktop\\screenScrapper\\Bitmap1.bmp";
oMsg.HTMLBody = "<HTML><BODY><img src = \" cid:[email protected] \"/><br><font size=\"2\" face=\"Courier New\">" + introText + "</font>" + body + "<font size=\"2\" face=\"Courier New\">" + conclText + "</font>" + " </BODY></HTML>";
Microsoft.Office.Interop.Outlook.Attachment attc = oMsg.Attachments.Add(imageSrc, Microsoft.Office.Interop.Outlook.OlAttachmentType.olEmbeddeditem, null, "");
attc.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x3712001E", "[email protected]");
//Send the message.
oMsg.Save();
出于某种原因,邮件仅仅是表示X当我尝试运行此代码...任何人都知道为什么吗?
甜蜜......它的工作原理谢谢 – user1753675
出于好奇,你使用了哪一部分? setProperty修改或邮件库? –
如何从消息中使用C#或PowerShell下载嵌入式图像(嵌入式图像)? – Kiquenet