How to send mail in Unix

Hi,

I am able to generate the log file from my shell file. How can i send the content of the log file through mail to some one.

Raja

mail -s "subject" email@hotmail.com <log

if you want to send as attachment, then

mutt -s "subject" -a log email@hotmail.com < mail_body.txt

That's great ,How to do the same thing with "sendmail" command ... ??

Raja

check out the FAQs

Hi,

     How can i send mail to the group when a file is checked out from the cvs and updated.

       Thanks in advance...............

        please send reply ASAP

How can i send mail when a file has been modified which is in CVS?

   Thanks in advance...

    kushagra.....

You will need to have a cron job running to continually check if file(s) have been modified. Perhaps some kind of ls -l | grep "Jun 12" to find today.

ls -l | grep "Jun 12" >temp_file
mailx -s "modified files" someone@anywhere.com <temp_file

You really did not provide that many details.