mailx - mail ti ids containing ampersand


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers mailx - mail ti ids containing ampersand
# 8  
Old 02-19-2009
Data Hi

As i am not getting any error to the id i am using
# 9  
Old 02-19-2009
Quote:
Originally Posted by aniruddha.saha
As i am not getting any error to the id i am using
Hmmmm... this is a confusing logic.
Not getting errors means the mail was not sent?
Do you mean you to say that the recipient does not receive the sent email?
# 10  
Old 02-19-2009
Hi

Yes
It is not sent
# 11  
Old 02-19-2009
Quote:
Originally Posted by aniruddha.saha
Yes
It is not sent
OK, I think we're going in circles here - I think you mean it's not being received as the 'mailx' returns no errors (per your earlier statement).

It's been awhile for since I've dealt with sendmail config, maybe the issue is there. Others might be able to help.

Also can you send email to this email address (with the '&' in it) from other MUA (MailUserAgent): like gmail.com, Exchange or whatever you're using to send your own email?

I'm just curious if '&' is allowed as part of a email address....

Maybe others can chime in....
# 12  
Old 02-19-2009
Hi

Thanks a lot for the help

I presume the problem is as & makes the mailx command to treat the code whatever prestn after & to be executable. As if i use backslash it is giving the error

echo "Please Ignore" | mailx -s "Test Mail" `ABC.&.XYZ@abc.com`
ksh: .XYX@abc.com: not found
ksh: RR.BI.: not found
The flags you gave are used only when send
Usage: mailx -eiIUdFntBNHvV~ -T FILE -u US
-s SUBJECT -f FILE users
# 13  
Old 02-19-2009
Hi

I am being able to send mail to the id from exchange server.
I presume commercial mail servers (gmail.yahoo) dont allow
But this mail id belongs to our company lotus notes.
Ther ampersand is allowed
# 14  
Old 02-19-2009
Quote:
Originally Posted by aniruddha.saha
Thanks a lot for the help

I presume the problem is as & makes the mailx command to treat the code whatever prestn after & to be executable. As if i use backslash it is giving the error

echo "Please Ignore" | mailx -s "Test Mail" `ABC.&.XYZ@abc.com`
ksh: .XYX@abc.com: not found
ksh: RR.BI.: not found
The flags you gave are used only when send
Usage: mailx -eiIUdFntBNHvV~ -T FILE -u US
-s SUBJECT -f FILE users
you're using back-ticks
(`) - you need to use SINGLE quotes (') as I've suggested previously.
If you cannot see the difference, just use DOUBLE quotes for now.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Problems sending mail: Difference between Mail and Mailx?

Whats the difference between mail and mailx? I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL) ... (1 Reply)
Discussion started by: RedSpyder
1 Replies

2. Shell Programming and Scripting

Not able to send the mail using mail and mailx command

Hi All, I am trying to send a mail from linux server but could'nt able to send the mail. I tried the below syntax's so far but no luck. mail -s “Hello world” abc@xyz.com < /usr/g/txt.log cat "txt.log" | mailx -s "Hello world" abc@xyz.com mailx -s “Hello world” abc@xyz.com <... (2 Replies)
Discussion started by: scriptscript
2 Replies

3. Solaris

Mail from mailx not received

Hi , I'm trying to send a mail from a sunOS machine that is within hp network to my email: eman.el-badawy@hp.com ,the user trying to send is 'project',,but seems the mail address can not be resolved checking /var/log/syslog i got the following: Dec 25 14:34:02 svddev15 sendmail: ... (1 Reply)
Discussion started by: Eman_in_forum
1 Replies

4. Shell Programming and Scripting

perl script to check the mail ids in the correct format or not

Hi Folks, I have few mailids in a text file and need to check whether the mailid is in correct format or not. If just to check whether the string is a mailid or not there is a perl module Email::Valid to do the business or we can implement our own logic. But the mail_ids I am having is... (4 Replies)
Discussion started by: giridhar276
4 Replies

5. UNIX for Dummies Questions & Answers

Email ids trucated in Mailx function

I wanted to send email to list of people using mailx in unix. I am getting the emailds from a oracle table and getting the ids in a variable. Shell script is shown below: ----------------------------------------------------------------------- filename=testdata921 export filename... (5 Replies)
Discussion started by: sasi02
5 Replies

6. Shell Programming and Scripting

Send a mail to IDs listed in a text file

I have a list of mail ids in text file and want a ksh script that reads this text file and sends a mail to all mail ids with same subject line and content. I am using UX-HP machine and KSH. Thanks for help in advance! (5 Replies)
Discussion started by: Sriranga
5 Replies

7. UNIX for Advanced & Expert Users

mailx commannd - Mail and Attachment in same mail

Hi , I am using mailx command for sending the mails. Rightnow I am sending the attachment (by using uuencode $filename) as a seperate mail.I wanna send the attachment also with the same mail. (6 Replies)
Discussion started by: sharif
6 Replies

8. UNIX for Advanced & Expert Users

Script which can send file to diffrent mail ids.

Hi i am looking for the script which can send file to different mailids, please halp me out. Thanks in advance. (3 Replies)
Discussion started by: vpandey
3 Replies

9. UNIX for Dummies Questions & Answers

mail or mailx attachment

I have used the forum to determine the format required to send attachments from hp-ux 11. the problem I have is that using mailx does not attach the file, but subsititing mailx for mail on the command line attaches the file but i'm not able to specify a subject? The attachment has been convert... (3 Replies)
Discussion started by: brettmartin99
3 Replies

10. UNIX for Dummies Questions & Answers

Specify Mail server in mailx

Dear All, I am using HP-UNIX. I want to specify host in mailx command line. A -> B I am in Server A. And run a mailx command line to send mail to abc@xyz.com. But Server A don't know where xyz.com is. It needs to send this mail to Server B to help him to send mail to... (1 Reply)
Discussion started by: wilsonchan1000
1 Replies
Login or Register to Ask a Question