How to send email from Linux Console

Linux Add comments
2,072

To send an email from console you need to use mail command, which is an intelligent mail processing system which has a command syntax reminiscent of ed with lines replaced by messages

First save the contents of the meesage in a txt file.  To send contains of file (such as /tmp/message) as mail body then use following command:

$ mail -s 'Hai' somewhere@domain.com < /tmp/message

Tags:, , , , , , ,

Liked this article? To continue getting our latest free Howtos and Tutorials,
you can also grab the RSS feed or Subscribe to Techgurulive by Email

Not Getting



Leave a Reply



This Howtos posted under" Linux

How to send email from Linux Console


Find Free Howtos and tutorials on apache, Linux, windows, php, Networking, MySQL, Cisco, open source, Nas, Virtualization, voip, vpn, email,send mail, lamp, security, SEO, squid, Anti virus, Backup, Database and many more