If you want to implement e-mail sending functionality in your WordPress site without any reliability issues or without the nuisance of mails going to the user’s Spam/Junk folder, it’s recommended to use SMTP instead of the default WP mailing function(which uses the default PHP mail function) .
I would recommend you to use SMTP even if you are only having a simple contact form and you love dependability.
Here are the two most recommended plugins that I’ve used and in the order of my preference:
This plugin reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page that allows you to specify various options.
You can set the following options:
- Specify the from name and email address for outgoing email.
- Choose to send mail by SMTP or PHP’s mail() function.
- Specify an SMTP host (defaults to localhost).
- Specify an SMTP port (defaults to 25).
- Choose SSL / TLS encryption (not the same as STARTTLS).
- Choose to use SMTP authentication or not (defaults to not).
- Specify an SMTP username and password.
Use this plugin to customize the SMTP mailing system used by default by WordPress to handle outgoing e-mails. It offers you the ability to specify:
- SMTP host name
- SMTP port number
- If SMTPAuth (authentication) should be used.
- SMTP username
- SMTP password
- If the SMTP connection needs to occur over ssl or tls