Solved

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

Posted on 2004-10-06
10
776 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

10 Experts available now in Live!

Get 1:1 Help Now