Send email in Linux command line.

Working in raspbian os.

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

# Added these lines and commented out any lines that were duplicates
$ sudo nano /etc/ssmtp/ssmtp.conf

AuthUser=your_email@gmail.com
AuthPass=Your-Gmail-Password
FromLineOverride=YES
mailhub=smtp.gmail.com:587
UseSTARTTLS=YES
AuthMethod=LOGIN

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

# troubleshooting errors
$ tail -f /var/log/mail.log

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.

OR
Install Easy WP SMTP and send a test email.

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