Linux   « 自作サーバ | HOME | TEST for SMTP Auth »

 ■ Send EMAIL from command line

How to send email from command line

# mail [-v] [-c address] [-b address] [-s 'subject'] address

-v : Show details for sending process
-c : CC address
-b : BCC address
-s : Subject
address : TO address

after that, press Enter. Then you can write email body.

after that, press Ctl-D to close email body.

Now the system shows "Cc:", then press Ctl-D again to finish.


Copy email description from the existing file

# cat /file | mail

sample : # cat /var/log/messages | mail -s 'log' webmaster@linux.com

投稿者 tomopugh : 2007年07月24日 16:58

Comment

yomenette~~

投稿者 tukuruhito : 2007年07月25日 00:19

yomerutte~~☆

投稿者 tomo : 2007年07月25日 00:29

Please comment !




Save the info?


  (Please don't click on "post" twice. It takes time a bit to change to the next screen!!)