我需要嵌入图像作为电子邮件的一部分,在用户签名之后,而不是在电子邮件的末尾,因为如果我发送大邮件的回复,则嵌入的图像这将是在电子邮件链VSTO Outlook嵌入图像MailItem
- 的底部我如何嵌入图像作为电子邮件内容(不向外部图像的链接)的一部分?
- 如何在用户签名后添加此图片?
我和VSTO,VS2008 Fwk3.5和Outlook 2007
在这里工作是我的代码:
public partial class ThisAddIn
{
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
this.Application.ItemSend += new Microsoft.Office.Interop.Outlook.ApplicationEvents_11_ItemSendEventHandler(Application_ItemSend);
}
private void Application_ItemSend(object Item, ref bool Cancel)
{
if (Item is Outlook.MailItem)
{
Outlook.MailItem mailMessage = (Outlook.MailItem)Item;
//do something to add the image after the signature
}
}
http://stackoverflow.com/documentation/outlook-addin/commit – 2016-07-28 04:32:48