VSTO Outlook 嵌入图像邮件项目
我需要在用户签名之后嵌入图像作为电子邮件的一部分,而不是在电子邮件末尾,因为如果我发送一封大电子邮件的回复,嵌入的图像将位于电子邮件的底部电子邮件链
- 如何嵌入图像作为电子邮件内容的一部分(不是外部图像的链接)?
- 如何在用户签名后添加此图像?
我正在使用 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
}
}
I need to embed an image as a part of the email, after the User Signature, not at the end of the email, becasue if i'm sending a reply of a large email, the embedded Image it's going to be at the bottom of the emails chain
- How do I embed an image as part of the email content (Not a link to an outside image)?
- How do I add this image after the user Signature?
I'm work with VSTO, VS2008 Fwk3.5 and Outlook 2007
Here is my code:
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
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后我解决了这个问题:
Finally i Solved the problem with this: