thedark Second Lieutenant
Joined: 30 Jul 2005
Posts: 1074
|
Posted: Sun Jul 31, 2005 7:58 am Post subject: FreeBSD : Sending a Message by E-Mail |
|
|
E-mail is a way of sending a message between users and administrators from command prompt for shell script. Use mail command as follows
mail -s "Subject" username-name or email-id
email message
email message
…
..
When the message is complete, press Control-D or type dot character and press return/enter key.
1) To send email to root user to notify printing problem
mail -s "printing problem" root@admin.test.com
MESSAGE TEXT |
|