Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
hi all.,

I have Used Whizzywig rich text editor to Send email form in my asp.net application.

There is no problem while in Sending Email from my application.

but receiver of the email has got the email content in html tags.

kindly help me sort it out.

Thanks in advance:

Kanthasamy.S
Posted
Updated 4-Aug-15 23:08pm
v3
Comments
Sergey Alexandrovich Kryukov 5-Aug-15 3:38am    
Which one? Any link? And why do you blame the editor? It sounds like a wrong content-type.
And now: tag your language, platform and other relevant detail.
—SA
kanthasamy 5-Aug-15 3:51am    
http://www.unverse.net/wysiwyg.html

above link has been used.

my platform is asp.net.
F-ES Sitecore 5-Aug-15 5:08am    
The problem is more likely to be with your sending code which you haven't posted. It could be your setting the plain text version of the email to be your html instead of the html version, or you are setting both to the html and the client is showing the text version (as is their right, you can't stop people ignoring the html version of your email).
kanthasamy 5-Aug-15 5:47am    
i have done it this solved my issues.
message.IsBodyHtml = true;

1 solution

The question is quite unclear (please see my comment to it), but I can give you some hint: it's more likely that your mail is composted incorrectly. It can be single-part or multipart. If there is only one part, it needs content-type "text/html". Your mail could be multipart, then only HTML parts need this content type.



[EDIT]

Please see:
https://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.isbodyhtml(v=vs.110).aspx[^],
about parts:
https://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.attachments%28v=vs.110%29.aspx[^],
https://msdn.microsoft.com/en-us/library/system.net.mail.attachmentcollection%28v=vs.110%29.aspx[^],
https://msdn.microsoft.com/en-us/library/system.net.mail.attachment%28v=vs.110%29.aspx[^],
pay attention for content type:
https://msdn.microsoft.com/en-us/library/ab7hb4y5%28v=vs.110%29.aspx[^],
https://msdn.microsoft.com/en-us/library/system.net.mail.attachmentbase.contenttype%28v=vs.110%29.aspx[^].

See also: https://msdn.microsoft.com/en-us/library/38yefbhz(v=vs.110).aspx[^].

—SA
 
Share this answer
 
v3
Comments
kanthasamy 5-Aug-15 3:50am    
i have used multipart
Sergey Alexandrovich Kryukov 5-Aug-15 3:54am    
I answered. See also the update to my answer, after [EDIT].
—SA
kanthasamy 5-Aug-15 4:09am    
thanks for ur valuable reply. let me check all those links.
Sergey Alexandrovich Kryukov 5-Aug-15 10:39am    
You are welcome.
—SA
kanthasamy 5-Aug-15 5:47am    
i have done it this solved my issues.
message.IsBodyHtml = true;

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

  Print Answers RSS


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