mail cant be sent from linux script

September 23, 2010 at 00:55:17
Specs: Linux
I am trying to send mail in a script by following command :

echo $RPL_success | mail -s "MySQL Replication Success on $hostname_" $mail_address

here variables $RPL_success, $hostname_" , $mail_address have certain values in them.

however upon executing this script with above command, i dont get any error. But I dont receive any mail from this.

Please help.

See More: mail cant be sent from linux script

Report •

September 23, 2010 at 12:46:11
I'm missing a command, where you send the mail.

You should use something like sendmail or mailx to send a mail by script.

The original poster should always write the last response !!!
Let us know, if the problem is solved !!!

Report •
Related Solutions

Ask Question