Update your hosts for wordpress on digitalocrean

Any one facing problem with digital ocean sending email?

the solution is easy, login to your ssh, and open up hosts file
[cc lang=”php”]nano /etc/hosts

change your host to something like this 127.0.0.1 localhost.localdomain localhost yourhostname and restart your services. and boom, you see your email send instantly.