Feb 24
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:command, e file, linux, mail, message, syntax, system, systems
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
you can also grab the RSS feed or Subscribe to Techgurulive by Email
Not Getting
Related postsHow to send Bulk Emails using Phplist – An Open Source Bulk Mailer Software
How to Hide Your Email Address From Spam Bots
































