Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
WordPress sends all mail from root@localhost using wp_mail()
I have a Digital Ocean droplet that was configured using the Laravel Forge build scripts.
It comes with LEMP stack setup.
All my emails from a WordPress site I have set up are sending out via root@localhost and consequently been rejected.
Sending via SMTP or the SparkPost API doesnt help nor does changing the email sender in functions.php or using a plugin to change it help.
FML I’ve been stuck on this for a few days already.
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.×