C# 使用.NET电子邮件API,我如何添加图像,然后能够决定/确定其在电子邮件中的位置/位置?

C# 使用.NET电子邮件API,我如何添加图像,然后能够决定/确定其在电子邮件中的位置/位置?,c#,.net,email,C#,.net,Email,我希望将图像作为附件添加到电子邮件中,然后通过覆盖要呈现的html或其他方式控制图像在电子邮件中的实际位置。这可能吗 看一看 我有一个小的代码示例,可以执行类似的操作 System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage(); System.Net.Mail.Attachment attachment = new System.Net.Mail.Attachment("file path here"); mail.

我希望将图像作为附件添加到电子邮件中,然后通过覆盖要呈现的html或其他方式控制图像在电子邮件中的实际位置。这可能吗

看一看


我有一个小的代码示例,可以执行类似的操作

System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage();

System.Net.Mail.Attachment attachment = new System.Net.Mail.Attachment("file path here");
mail.Attachments.Add(attachment);
.......[continue with method here]..........

我正在使用System.Net.Mail API。我将接受它。我刚刚浏览了那一页,很快就浏览了一遍,没看到。谢谢。我忽略了使用带有关键字的HTML文件,这意味着我可以完全控制完整的电子邮件外观。在这方面也忽略了XML和XSLT…Wood forvtrees突然出现在我的脑海中,,,