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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Sending Mail ProblemSending Mail Problem
Previous
 
Next
New Post
6/7/2009 4:01 PM
 

I'm having a problem sending e-mail in dnn4.8.4.  from a scheduled task

The call is -

Dim message As New StringBuilder
---Message is built up
Dim result As String = Mail.SendMail(HostSettings.GetHostSetting("HostEmail"), emailRecipent, "", emailSubject, headerText & message.ToString & trailingText, "", "html", "", "", "", "")

Text stored in the history log file from message.ToString()

<table border="1"><tr><td colspan=2 align=center>....

Text recieved in GMAIL

 <table border=3D"1"><tr><td colspan=3D2 align=3Dcenter>....

In every e-mail that my code has sent, all equals characters have been replaced with "=3D".  Any suggests as to what I'm doing wrong?

Tom


Tom Thorp
 
New Post
6/8/2009 9:53 AM
 

Hi there,

for the email message, where do you get the content from? is it from rich text editor or from an input string?
Have you try to use Server.HtmlDecode (only use this if you want to decode the html from rich text editor)

 
New Post
6/8/2009 11:31 AM
 

The content is generated by the vb.net code using stringbuilder.  So there is nothing to really decode/encode.

It really is a wierd problem and I cannot find it reported anywhere else.

Tom


Tom Thorp
 
New Post
6/8/2009 6:28 PM
 

Have you tried to send to other email provider instead of GMail?
If it is fine then do not worry about as some email provider replace the message content automatically.
I do have a weird problem before but not the 3D character. Try to close every attribute using "" or ''
i mean instead of align=center => align="center" or alignn='center'

or probably try use '(single quote) instead of "(double quote) and see what happen.

 

 
New Post
6/8/2009 8:01 PM
 

That "worked".  The "3D" is still there, but the mail is rendered correctly, so you don't see the problem.

I checked output of another module I've got running on DNN3.2.2, and everything is correct.  When I traced through the code, the only place where the problem can occur is in the call to System.Net.Mail.AlternateView.CreateAlternateViewFromString in mail.vb service.

Anyway, thanks for help


Tom Thorp
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Sending Mail ProblemSending Mail Problem


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