在asp.net网站上获取没有图像的电子邮件 [英] Getting Email without Images in asp.net Website
本文介绍了在asp.net网站上获取没有图像的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用asp.net网站向电子邮件订阅者发送电子邮件.我正在使用所见即所得的编辑器控件.
Hi,
I am sending email to email subscribers using asp.net website.I am using WYSIWYG editor control.
MailAddress fromAddress = new MailAddress("info@captorsolutions.com");
message.From = fromAddress;//here you can set address
message.To.Add(s);
message.Subject = "Aghoryan Email Notification";//subject of email
// message.CC.Add("cc@site.com");//ccing the same email to other email address
//message.Bcc.Add(new MailAddress("bcc@site.com"));//here you can add bcc address
message.IsBodyHtml = true;//To determine email body is html or not
message.Body = string.Format("<html><body>" + ucEditor1.Content + "</body></html>");
smtpClient.Send(messag
使用编辑器插入图像,但收到包含图像和文本的电子邮件.
如果我仅使用此编辑器发送文本,则效果很好.
你能帮我吗?
谢谢大家.
insert the image using editor but getting email with out image and text.
If i send only text using this editor works fine.
Could you help me.
Thanking you all.
推荐答案
看看调试器中usEditor1.Content
属性给出的文本内容.我怀疑它不是HTML,或者它不包含嵌入式图像.
Have a look at the text content given out by the usEditor1.Content
property in the debugger. I suspect that it is either not HTML, or that it does not contain embedded images.
这篇关于在asp.net网站上获取没有图像的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文