send mail using shell script

Here shows how to send mails using shell script.
This can be useful when you are trying to send a mail notification before or after any particular job.
Here is the command

echo "content of  mail  : `date +%Y%m%d` ." | mailx -s "subject of mail " $Mail_ID (mail ideg@gmail,com)

Put this in a shell script and call it using ./shell_name.sh .

Comments

Popular posts from this blog

Introduction To Oracle10g

Insert

Except