Help with Mailx

Hi ,

I have written below code to send email from unix. The code is getting executed fine but i am not receiving any e mail . I am not sure what is going wrong . Do we need to do any configration setting before using Mailx? Please help

 
set -vx
echo 'Sending Mail'
mailx -s "SEPA_TEST" sraj.chandru@gmail.com<<MSG_TEXT
Hi,
   Memberpoint 2.0 AUTO PAS system: The downstream integration process is failed. 
 *******  This is an auto-generated email message, please do not reply.  *******
Thanks,
MSG_TEXT
echo 'Mail Sent'

Run mail on your UNIX server. Check mail box and verify if you have received any email delivery failure notification.

mailx is just a client and not involved in transmitting mails. Check your local mail transfer agent, like sendmail, postfix, qmail, etc.