Solved

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

Posted on 2004-10-06
10
779 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:Jinghui Li
ID: 12255732
I print it to console.  No !  I use StringBuilder to construct the string.
0
 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

828 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