Send email in Linux command line.

Working in raspbian os.

$ sudo apt-get install ssmtp
$ sudo apt-get install mailutils

$ sudo nano /etc/ssmtp/ssmtp.conf
# Added these lines and commented out any lines that were duplicates
AuthUser=your_email@gmail.com
AuthPass=Your-Gmail-Password
FromLineOverride=YES
mailhub=smtp.gmail.com:587
UseSTARTTLS=YES

# send email
$ echo “This is a test” | mail -s “Test” your_email@gmail.com

resources
http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html
http://tecadmin.net/bash-mail-command-not-found/

Send Email from WordPress

This plugin will allow you to setup the SMTP server which will allow you to use WordPress plugins that use email. You will be able to choose from your own or gmail SMTP.

If you wish not to use a plugin but instead use a PHP script using phpmailer.

If you want to send out email notifications to a commenter when they are replied. Download the comment-reply-notification plugin
More information on this plugin.

tags:
wordpress email notification reply comment
wordpress send email reply comment