By Derrick Goh
I installed cPanel from the marketplace onto my droplet. I have transferred my wordpress site over to the hosting account. but now my wordpress site seems to be having issue sending out emails.
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!
Hello @derrickgoh,
I recommend using cPanel >> Email Accounts to create a dedicated email address for your WordPress installation. Then, install a WordPress plugin to facilitate the use of SMTP for sending email from WordPress. Here’s a popular WordPress plugin that adds SMTP support:
https://wordpress.org/plugins/wp-mail-smtp/
Otherwise, if you prefer to send email from Wordpress via the PHP Mail function, check /var/log/exim_mainlog for specific errors upon testing the PHP mailing script and let me know what you see. Here’s a command you can execute to see the recent entries in this log file during testing:
tail -f /var/log/exim_mainlog
Let me know if you have any questions or require additional assistance.
Thank you.
Is cpanel free of cost? I have heard it will cost around $15/month extra.
Hello all,
What I could suggest here is using an SMTP plugin for your WordPress site.
That way you will be able to specify an SMTP server with authentication which your emails would be going through. You could for example use Gmail’s SMTP settings. This would drastically increase the delivery rate of your emails as well compared to using plain PHP mail.
I’ve been using this plugin for a while now and it works very well: Easy WP SMTP
Hope that this helps!
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.