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...Upgrading DNN P...Upgrading DNN P...E-mail formatting issuesE-mail formatting issues
Previous
 
Next
New Post
2/1/2012 6:12 PM
 

Hi,

I have a weird issue that I cannot figure out....  In one of my custom modules, built for for a client website - admins can store e-mail templates - they can format the e-mail however they like (colors, images, etc.)

Their Production web site is running DNN 5.4.1 - and the e-mails are sent with perfect formatting (i.e. exactly what is in the template).

However in version 5.6.3 and in 6.x - all the formatting is dropped when the e-mail is sent (using the exact same template).

Has anyone else encountered this?  I can't figure out what is causing this behavior...  It must be something in the way e-mails are sent in DNN...

Here is the code used when the formatted e-mail is sent:

DotNetNuke.Services.Mail.Mail.SendMail(strFrom, strRecipient, String.Empty, strSubject, strBody, strAttachment, Services.Mail.MailFormat.Html, SMTPServer, SMTPAuthentication, SMTPUsername, SMTPPassword)

 

 

 
New Post
2/2/2012 1:53 AM
 
Are you using a Rich Text Editor for the content editing? Is it possible that the template was edited after the upgrade and has a different behavior, possibly removing the formatting from the template?

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/2/2012 6:26 AM
 

Thanks for the reply but that's not the issue.  Testing on my dev P.C. I'm getting the same behaviour in DNN 6.

Here is the HTML generated for the e-mail generated by my module (with minor some changes to the content).  When my app sends it - the formatting is gone.  But when I send the same HTML using the Bulk EMail (Newsletter) module, the formatting is retained in the e-mail.

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>
</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
</HEAD>
<BODY>
Hello Person,<br /> <br /> Blah, blah blah on 2/1/2012 at 4:38 PM.<br /> <br /> Here are the details:<br /> <br /> Request Type: <strong>Item 1 </strong><br /> Request Unit: <strong>Unit 1 </strong><br /> Quantity: <strong>1 </strong><br /> Request Start Date: <strong>2/2/2012 </strong><br /> Request End Date:<strong> 2/2/2012<br /> </strong><strong><p>Comment:</p><p>jkjlkljkjlk</p></strong><br /> <br /> A notification has been sent to your supervisor advising them that a new record is awaiting approval. Once the record has been approved (or rejected) - you will be notified. <br /> <br /> Thank-you. <br /> <br /> <a href="http://abcdefghijk.com/">ABC Attendance</a> <br /> <br /> <strong><span style="color: #ff0000;">Please Note: This e-mail was automatically generated by the Application.  Please <span style="text-decoration: underline;">do not respond </span>to this e-mail.</span></strong>
</BODY>
</HTML>

 
New Post
2/2/2012 8:55 AM
 
Switched to a differend overload of the DotNetNuke.Services.Mail.Mail.SendMail function and now the formatting works....
 
New Post
2/3/2012 6:04 AM
 
ouch, Allan, please report this bug in the public issue tracker at support.dotnetnuke.com. Thanks you!

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...Upgrading DNN P...Upgrading DNN P...E-mail formatting issuesE-mail formatting issues


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