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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending undeliverable mails via mailx

Status
Not open for further replies.

ajrandrup

Programmer
Dec 9, 2003
12
PH
hello,

i am trying to send an email with attachment to one address via mailx. however, i am now trying to change the script in such a way that if the mail is undeliverable on this address, it will then send the email to another email address.

is there a way to do this?

Thanks
 
You could check to see if the mailx command line was successful or not, with $?.
When the mail has gotten to the server, mailx no longer cares what happened.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top