Computing.Net > Forums > Unix > sending a mail

sending a mail

Reply to Message Icon

Original Message
Name: ulee
Date: April 13, 2004 at 04:59:25 Pacific
Subject: sending a mail
OS: Linux
CPU/Ram: 512
Comment:

Hello,

I am trying to use sendmail in my script to tell users that a file has been deleted.

But after checking up, i am still not very sure how to use it? How do you put a message into this sendmail command?

Thanks in advance



Report Offensive Message For Removal


Response Number 1
Name: David Perry
Date: April 14, 2004 at 04:49:27 Pacific
Reply: (edit)

echo "File deleted" | mail -s "subject" user@machine.com

The -s "subject" is optional and may not be supported on your platform.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: sending a mail

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge