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.
Any ideas?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hmm I dont think that will work as I’ve implemented an alternate but similar plugin and added the necessary filters to functions.php to over ride the sender and it still doesnt work.
Are you using a WordPress plugin to integrate with a third-party solution, such as WP Mail SMTP?
https://wordpress.org/plugins/wp-mail-smtp/
By default, WordPress relies on PHP’s built-in mail() function which, without a valid and working mail server, will ultimately result in e-mails sent from WordPress landing in the SPAM/Junk folder. You can get around this by using a plugin, such as the one referenced about, that will allow you to integrate with third-party solutions such as Google Gmail, Mailgun, SendGrid, and others.
I’ve used this plugin in the past and it’s always worked without any issues, so long as the connection details that are provided to it are correct.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.