Solved

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

Posted on 2004-10-06
10
781 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

729 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