Click here to Skip to main content
16,016,773 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900