Forums

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
    Posts
  • #191366
    KKHAN
    Participant

    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.

    #191367
    KKHAN
    Participant

    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?

    #191369
    Senff
    Participant

    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.

    #191396
    Ilan Firsov
    Participant

    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.