Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Special Characters in "To" address causing crash

Status
Not open for further replies.

Calator

Programmer
Feb 12, 2001
262
AU
Hi,

We use sendmail to send messages that are automatically generated from our business systems software.

This process has crashed when sendmail encountered a destination address that was containing an apostrophe, eg:
john.o'rourke@mydomain.com

I have 2 questions:

1. what are all possible ways to prevent the crash?. Eg escaping the apostrophe: \', or are there any other methods such as enclosing the whole address within other separator characters: eg "address" ?

2. what are all other special characters that will confuse sendmail apart from apostrophe, that we need to take care of?
Many thanks
 
Apostrophes aren't allowed in usernames. Simple as that.
To find out what characters are allowed, check the SMTP RFC. //Daniel
 
Daniel,
Thanks for pointing me to smtp rfc 821. This showed that special characters including apostrophes are allowed in user names and may be escaped using "\" or better still, using the quoted text format which means to enclose the address within triple double-quotes: """address""". Tested both avenues and found to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top