How to send a email from wordpress droplets

Posted August 21, 2020 563 views

I bought a wordpress droplets. I migrate my websites here. Before, I use gmail and work well.Now it does not work.
I use wp mail stmp plugin. When test email send,I get follows message:
There was a problem while sending the test email.

An issue was detected.

This means your test email was unable to be sent.

Typically this error is returned for one of the following reasons:

  • Plugin settings are incorrect (wrong SMTP settings, invalid Mailer configuration, etc).
  • Your web server is blocking the connection.
  • Your host is rejecting the connection. How to fix?Or you could tell me how to mail other way.Anyway wordpress need contacct and send mail

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.

Submit an Answer
1 answer

Hi there @zengliwen,

What I could suggest here is rather than using port 25 is to use port 587 with TLS.

By default port 25 is closed for new accounts.

Another thing that I would recommend is, if you have ufw enabled, you need to open port 587 via your ufw:

  • sudo ufw allow 587

Let me know how it goes.

  • Thanks.
    I ufw allow 587, but error is same.
    I’m trying to know other firewall control in digitalocean.

    root@wordpress-s-2vcpu-2gb-tor1-01:~# sudo ufw allow 587
    Rule added
    Rule added (v6)
    root@wordpress-s-2vcpu-2gb-tor1-01:~# sudo ufw app list
    Available applications:
    Apache Full
    Apache Secure
    Postfix SMTPS
    Postfix Submission