To be able to do as the above mentioned, a tool named mutt is needed. Mutt is a mail user agent (MUA) and a very excellent one in my opinion. To install mutt:
* # yum install mutt
To send email, you can use this commands (Choose whichever you like):
* # echo "your messages" | mail -s "your subject" johndoe@yahoo.com
o where -s is for subject and johndoe@yahoo.com is your recipient name
* # echo "your messages" | mutt -s "your subject" johndoe@yahoo.com
o where -s is for subject and johndoe@yahoo.com is your recipient name
To send email with attachment
* # echo "your messages" | mutt -s "your subject" -a /path/to/attachment johndoe@yahoo.com
o where -s is for subject, johndoe@yahoo.com is the recipient name and /path/to/atachment is the path to attachment file
Thursday, April 8, 2010
Send email in linux terminal
Posted by simplengRoeL at Thursday, April 08, 2010
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment