I'm using ASP.NET 2.0 and System.Net.Mail to send email. I want to send out both HTML and text email. The html email is always being sent as text. Instead of marking up the email, tags come across as text themselves. How can I fix this?
Diane
Diane
RE: Useing editor to send email
Re: Useing editor to send email
I have exactly the same query. From what I understand, a mail message can contain a text and HTML version - of course for e-mail programs that can render the HTML. In order to render the HTML, the HTML must be contained within <HTML> tags.
Does the editor allow you to insert HTML tags, head tags, meta tags, style tags and body tags?
Kind regards,
Mathew
Re: Useing editor to send email
message.BodyFormat = MailFormat.Html;
Re: Useing editor to send email
Hi leveille,
Thanks for getting back to my post. My solution was to create an AlternateView and set the MediaType to MediaTypeNames.Text.Html. Requires more coding though. The example was taken straight from the SystemNetMail web site:
http://www.systemnetmail.com/faq/3.4.2.aspx
I've test this with sort of mail sending with email clients Outlook, Yahoo, and Lotus Notes - without any problems.
One thing my managers are concerned about is that FCKeditor does not produce <html>,<head><title> tags; and that some e-mail servers/clients may 'bounce' the message. Have you had any experience with this sort of problem?
Regards,
Mathew
Re: Useing editor to send email
Re: Useing editor to send email
Check the configuration settings. One of them is exactly that option.
Re: Useing editor to send email
FCKConfig.FullPage = false ;
line 39. Looks like that would do it.
Re: Useing editor to send email