如何使用C#从Outlook发送带有徽标的邮件 [英] How to send mail with logo from outlook using c#
本文介绍了如何使用C#从Outlook发送带有徽标的邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有带有一些文本和徽标的Word文档.
如何使用c#
I have word document with some text and logo.
How to send the mail from outlook with body(logo & text), using c#
推荐答案
从Outlook中使用正文(徽标和文字)从Outlook发送邮件,并以HTML
格式正确定义电子邮件正文.将您的徽标并以模板形式设计您的内容.
通过LinkedResource
添加徽标.定义并填充.
发布,只需保留:
Define an email body properly in anHTML
format. Place your logo and design your content in a template form.
Add logo viaLinkedResource
. Define it and populate it.
Post that, just keep:
mail.IsBodyHtml = true;
LinkedResource logo = new LinkedResource(path);
logo.ContentId = "companylogo";
//Add the linked resource to email
看看这些技巧:
使用C#发送带有或不带有附件的电子邮件:通用例程. [ ^ ]
在电子邮件中嵌入图像-ASP.NET,C# [ ^ ]
使用ASP.NET嵌入电子邮件中的图像 [ ^ ]
Have a look at these tip:
Sending an Email in C# with or without attachments: generic routine.[^]
Embed image in Email - ASP.NET , C#[^]
Embed an Image in Email using ASP.NET[^]
这篇关于如何使用C#从Outlook发送带有徽标的邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文