Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Content-Type:text/htmlContent-Type:text/html
Previous
 
Next
New Post
1/30/2015 4:27 PM
 

Hi folks:

 So I'm making my own contact form. Users fill out fields, and hit a submit button. THe system then sends an email.

 I'm using this:

                    DotNetNuke.Services.Mail.Mail.SendMail(FromAddress,SenderAddress,ToAddress,Subject,Body,string.Empty,"HTML",string.Empty,string.Empty,string.Empty,string.Empty);

THe thing is, when messages come in to my Outlook Inbox, the message header says it's not Content-type:text/html and the display of the content is pretty ugly.

 

So i'm wondering what I"m doing wrong here. The content I have is really nothing more than a couple styled divs. If I view the message via HOTMAIL, it looks great. But embedded in outlook it's just all wrong.

 

I don't know for sure, but I think it's because the message isn't being send with the correct content type.

 Would someone be willing to offer some insights? In my code (above), I think I'm setting the "HTML" the way it should. But when I look at message source of a delivered email, it's content-type:multipart/alternative.

 

 

 
New Post
1/30/2015 4:51 PM
 

I could be wrong, but methinks this is an outlook rendering issue.

 

I'm not sure 100%. but just did a little reading about the nightmare of formatting html embedded for viewing in Outlook. 

 
New Post
1/31/2015 6:24 AM
 
I am having no issues with HTML notifications from the forums on this website.
Which DNN Version are you running on your site?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/3/2015 9:56 AM
 

Hi friend:

 It's not an issue with HTML notifications. It's an issue with the way DotNetNuke.Mail.Mail.SendMail was being used on my part. THe issue was specifically with the way outlook was rendering the embedded HTML, which I've since researched and learned is an OUTLOOK issue, not a DNN issue.

I've modified my embedded HTML that was being sent to be old school HTML for safer rendering in Outlook.

 
New Post
2/3/2015 12:20 PM
 
ah, thanks for the additional feedback. Most mail clients have limited capabilities on CSS/HTML for security reasons.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Content-Type:text/htmlContent-Type:text/html


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out