Question
WordPress SMTP DigitalOcean Issue
Hi,
Has anyone had an issue with using WP Mail SMTP on digitalocean servers?
I created a contact form plugin for my wordpress website.
I am using the wpmail to send email.
http://codex.wordpress.org/FunctionReference/wp_mail
I am using WP MAIL SMTP plugin. So that wp_mail function uses SMTP instead of the standard mail().
https://wordpress.org/plugins/wp-mail-smtp/
1.
local: (smtp.live.com) Sent
live: (smtp.live.com ) Failed
Was told smtp.live.com blocks digitaloceans IP thats fine.
2.
local: (smtp.gmail.com) Sent
live: (smtp.gmail.com) Failed
Error message from WP MAIL SMTP plugin:
[“authenticate”]=>
string(35) “SMTP Error: Could not authenticate.”
[“connecthost”]=>
string(43) “SMTP Error: Could not connect to SMTP host.”
[“datanot_accepted”]=>
string(30) “SMTP Error: data not accepted.”
3.
local: (smtp.mandrillapp.com) Sent
Live: (smtp.mandrillapp.com) Failed
Same Error as gmail.
==========================================================================
I’ve gone onto gmail and EVEN mandrill and it’s not working live but works locally. So i am unsure what is the difference on my local ubuntu 14.04 machine when compared to my live droplet ubuntu 14.04 machine when i set them up the same way using the guides found on digital ocean.
Anyone else had a problem with this?
Does someone know of an alternative to WP SMTP Plugin so i can rule out or determine whether the plugin has an issue when used from my droplet.
Could port 587 or 465 be blocked on my droplet? Could someone please tell me how i can check and then how i can open the ports.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
I have the same exact problem. On my localhost server SMTP and phpMail works - I can send email in many different ways. But none work in my droplet.
I have run :
and the connection succeeds (it also succeeds in port 465) so I am assuming that it’s not SMTP being blocked.
How can I determine if its an issue with my droplet or with wordpress. Does any one have any ideas on good methods for debugging this?