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 localhost.localdomain localhost yourhostname and restart your services. and boom, you see your email send instantly.