The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress Custom Contact Form Plgin Live Issue

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #191366


    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.

    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.

    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?


    Rule out? No. Cause WP-Mail-SMTP works on your live environment.

    Likely? Yes. Cause it works on your dev.

    I would try to narrow it down first. Get rid of all code in your plugin except wp_mail() with some hard-coded values and see if that works.

    Ilan Firsov

    And check for PHP errors (enable WordPress debug mode or ask your hosting provider to give you access to the logs).
    It’s probably a disabled function on the live environment or some other change between your dev and live env. – doing what Senff suggested should confirm this

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Back End’ is closed to new topics and replies.