How to set up PHP mail function on OpenLitespeed WP?

Posted July 16, 2021 184 views

Trying to integrate a contact form in WordPress to no avail. Is there some sort of firewall? How do I fix this?

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.

Submit an Answer
2 answers


I just did a quick test and it works for me. Maybe you need to check if there’s any firewall on your network level. Or check /var/log/mail.log for any error.


Hello, @ArchieTheFirst

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 SendGrid’s SMTP service. 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!