Question

Wordpress Custom Contact Form Plugin Not Working On Live Envrioment

  • Posted December 21, 2014

Hi,

Hi,

I created a custom contact form plug-in, it also uses the WP-Mail-SMTP plugin for smtp email sending. It is working on my local development environment, but not on my live environment. When i use the WP-Mail-SMTP plugin to send a test email, that works fine.

http://pastebin.com/JfEfrCxW

It returns Error Sending Message Instead of the Thanks for contacting me message. I receive no email in my inbox.

So i tried this guys small plug-in to send an email to my self.

http://wordpress.stackexchange.com/questions/95016/wordpress-refuses-to-send-mail-your-host-may-have-disabled-the-mail-funct

This worked on my local environment as does my own plug-in but again does not work on live environment.

So we can rule out it’s nothing to do with the plug-in code?

What’s stopping this from working on live?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Sounds like your sendmail function is missing. Let’s try this. SSH into your server and trying sending and email using the following code. Don’t forget to replace 'user@domain.com with a valid email.

sendmail user@domain.com Body of Test Message

Also, how did you installed wordpress, as a One-Click install or manually?

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! Regards, Alex

This comment has been deleted