cancel
Showing results for 
Search instead for 
Did you mean: 

mailx problem

Hp Unix
Occasional Visitor

mailx problem

/bin/mailx -s ~"" + vSubject + "~" " + EmailAddr

The above command works when EmailAddr = "mahesh.x.sarda@chase.com"

But it fails when EmailAddr = "timothy.r.o'neil@chase.com".

is it because of the special character in the email address? If yes, what should I do so that the email goes to timothy.r.o'neil@chase.com
4 REPLIES
Patrick Wallek
Honored Contributor

Re: mailx problem

>>is it because of the special character in the email address?

YES.

>>what should I do so that the email goes to timothy.r.o'neil@chase.com

Modify his e-mail address so it follows standards. I don't know of many e-mail servers that would allow a single quote in a e-mail address. Ideally his address should be: timothy.r.oneil@chase.com
Dennis Handly
Acclaimed Contributor

Re: mailx problem

>mailx -s ~"" + vSubject + "~" " + EmailAddr

What do you mean by the above syntax? Is this some language other than a shell?

>is it because of the special character in the email address? If yes, what should I do so that the email goes to timothy.r.o'neil@xyz.com

Yes, you need to quote that string:
mailx -s "subject ..." "timothy.r.o'neil@xyz.com"
Hp Unix
Occasional Visitor

Re: mailx problem

His outlook is working absolutely fine with this email address.
Suraj K Sankari
Honored Contributor

Re: mailx problem

Hi,

>>is it because of the special character in the email address?

YES

>>If yes, what should I do so that the email goes to timothy.r.o'neil@chase.com

I don't know it will work or not but you can take a chance try like this timothy.r.o\'neil@chase.com

Suraj