Solved

An exclamation mark is added randomly to my long email message body

Posted on 2004-10-06
10
777 Views
Last Modified: 2012-08-14
My application (both asp and asp.net) sends email notice.  An exclamation mark is randomly added to my email message body.  I search Internet and found similar bugger in PHP email.  If I cut the message very short, the mark goes away.

http://www.tek-tips.com/viewthread.cfm?qid=913854

Please help.
0
Comment
Question by:Jinghui Li
  • 4
  • 4
10 Comments
 
LVL 15

Expert Comment

by:Thogek
ID: 12244920
Question:
How is the message body text of your emails assembled?  (Database query? Form submission data? Etc?)
0
 

Author Comment

by:Jinghui Li
ID: 12248862
The message body text  is assembled in a variable and passed to the interface for both asp and asp.net.
0
 
LVL 15

Expert Comment

by:Thogek
ID: 12255714
Is that variable constructed using pieces from the querystring? form submission? data query?

If you just Response.Write that variable to the page, do you still see the exclamation points?
0
 

Author Comment

by:Jinghui Li
ID: 12255732
I print it to console.  No !  I use StringBuilder to construct the string.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 15

Expert Comment

by:Thogek
ID: 12265299
> I use StringBuilder to construct the string

I understand this.  But the parts of the string that you are constructing together via the StringBuilder do come from someplace, right?
0
 

Author Comment

by:Jinghui Li
ID: 12266432
Here is what I got from other experts. I have not tried it out yet.

Beginning with V1.1 of the framework, System.Web.Mail does no longer use Quoted-Printable encoding on HTML mails. Therefore, you should make sure yourself that no line exceeds 76 characters, which is the limit one should use for trasnport over SMTP. Adding line breaks may solve your problem.
0
 

Author Comment

by:Jinghui Li
ID: 12287884
I got helps from another posting.  It seems solved my problem.

http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_21160997.html


Thanks a lot.
0
 
LVL 15

Expert Comment

by:Thogek
ID: 12288754
Wow.  Wacky stuff -- basically a problem with too-long lines in SMTP, eh?  (http://mailformat.dan.info/body/linelength.html)  But at least ya found it...  :-)

You'd think the MailMessage class would have some sort of word-wrap-length property (like ASPMail does)...
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12752229
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now