apt-get install sendemail
Now to send a message using your gmail account ( this is entered on one line)
sendEmail -f my.account@gmail.com -t myself@domain.tld -u this is the test tile -m “this is a test message” -s smtp.gmail.com -o tls=yes -xu usernameonly -xp mypasswd
*note that the above is all on one line and that the -xu username only is just the username, not the username@gmail.com
The stuff for this post was taken from http://www.debianadmin.com/how-to-sendemail-from-the-command-line-using-a-gmail-account-and-others.html and they have many more examples, I just made it more newbie friendly
No comments:
Post a Comment