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

# send email
$ echo "This is a test" | mail -s "Test"

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


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.

Install Easy WP SMTP and send a test email.

wordpress email notification reply comment
wordpress send email reply comment