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

Mail help...

Status
Not open for further replies.
Oct 22, 2001
215
US
I would appreciate if some one can point me to the right direction...
I am trying to automate an email process as follows and that works fine:

#!/bin/ksh
echo "This is a Test mail"
recepient="root"
echo $recepient
echo "Job completed okay" | mail $recepient
echo "Mail has been sent"
exit

This emails an internal user but the mails does not go to an email ID some thing like this:

#!/bin/ksh
echo "This is a Test mail"
recepient="ask1@bla.com"
echo $recepient
echo "Job completed okay" | mail $recepient
echo "Mail has been sent"

Nothing happens...No email is send ...Can any any one suggest what am I doing wrong??
TIA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top