LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs > neonsignal
User Name
Password

Notices

Rate this Entry

scripted email

Posted 06-09-2011 at 08:17 AM by neonsignal

Email can be sent from the command line using mail (assuming that the mail agent has been configured to be able to access an appropriate smtp server if there is no local one).
Code:
mail -s 'subject' recipient@example.net <message.txt
This can be useful for example in a cron job to send an update.

If more formatting control is required, then html email can also be sent:
Code:
mail -a 'Content-type: text/html' -s 'subject' recipient@example.net <message.html
Posted in Uncategorized
Views 297 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration