PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Form Submits And Saves In DB But Won't Email

  1. Hi

    At http://www.rothamelbratton.com the forms submit and go into the database but don't go any farther than that. They don't go to the notification emails. I have one email in the To: section and three in the CC: section. They are separated with commas (,).

    What's going on?

    Posted 10 years ago on Wednesday June 13, 2012 | Permalink
  2. Gravity Forms just uses the built-in WP mail function of WordPress to send out notifications so we really don't have control on them sending out.

    Usually, trying out an SMTP plugin does the trick, a lot of people have success with this:
    http://wordpress.org/extend/plugins/wp-mail-smtp/

    Also, verify the messages are not getting spammed.
    Give this a try and let me know how it goes.

    Posted 10 years ago on Wednesday June 13, 2012 | Permalink
  3. I have the same problem and don't know how to fix it. I tried the plugin you mentioned but no change.

    Posted 10 years ago on Thursday June 14, 2012 | Permalink
  4. I disabled all my plugins and it worked. Then one by one I activated my plugins and when I activated Akismet I did not receive the notification. Then I went to the Gravity Forms settings and disabled akismet integration while I left akismet activated among my plugins and it worked. http://screencast.com/t/q1bfNinq

    Posted 10 years ago on Thursday June 14, 2012 | Permalink
  5. Right on, glad you got it working.

    Posted 10 years ago on Thursday June 14, 2012 | Permalink
  6. So I am getting the form sumitted entried in Gravity forms but I'm still not getting them to email. I don't have akismet running. I'm dealing with a very frustrated client. Any chance you guys can take a look?

    -Seth

    Posted 10 years ago on Friday June 15, 2012 | Permalink
  7. Seth, as I said above:

    Gravity Forms just uses the built-in WP mail function of WordPress to send out notifications so we really don't have control on them sending out.

    Usually, trying out an SMTP plugin does the trick, a lot of people have success with this:
    http://wordpress.org/extend/plugins/wp-mail-smtp/

    Also, verify the messages are not getting spammed.
    Give this a try and let me know how it goes.

    Posted 10 years ago on Friday June 15, 2012 | Permalink
  8. Hi Rob

    So I tried the SMTP plugin and IT WORKS but still no luck with Gravity Forms.

    This is the output given to me by the SMTP Plugin when I use PHP to do the sending

    Test Message Sent

    The result was:

    bool(true)
    The full debugging output is shown below:

    object(PHPMailer)#252 (58) {
    ["Priority"]=>
    int(3)
    ["CharSet"]=>
    string(5) "UTF-8"
    ["ContentType"]=>
    string(10) "text/plain"
    ["Encoding"]=>
    string(4) "8bit"
    ["ErrorInfo"]=>
    string(0) ""
    ["From"]=>
    string(25) "forms@rothamelbratton.com"
    ["FromName"]=>
    string(14) "Form Submitted"
    ["Sender"]=>
    string(0) ""
    ["Subject"]=>
    string(56) "WP Mail SMTP: Test mail to sgoldstein@goldsteinmedia.com"
    ["Body"]=>
    string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin."
    ["AltBody"]=>
    string(0) ""
    ["MIMEBody:protected"]=>
    string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin.
    "
    ["MIMEHeader:protected"]=>
    string(383) "Date: Mon, 18 Jun 2012 15:59:12 +0000
    Return-Path: forms@rothamelbratton.com
    From: Form Submitted
    Message-ID: <8e37f6eb8a4876e15c0903fbc8450cf4@rothamelbratton.com>
    X-Priority: 3
    X-Mailer: PHPMailer 5.2.1 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: text/plain; charset="UTF-8"
    "
    ["SentMIMEMessage:protected"]=>
    string(556) "Date: Mon, 18 Jun 2012 15:59:12 +0000
    Return-Path: forms@rothamelbratton.com
    From: Form Submitted
    Message-ID: <8e37f6eb8a4876e15c0903fbc8450cf4@rothamelbratton.com>
    X-Priority: 3
    X-Mailer: PHPMailer 5.2.1 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: text/plain; charset="UTF-8"
    To: sgoldstein@goldsteinmedia.com
    Subject: WP Mail SMTP: Test mail to sgoldstein@goldsteinmedia.com

    This is a test email generated by the WP Mail SMTP WordPress plugin.
    "
    ["WordWrap"]=>
    int(0)
    ["Mailer"]=>
    string(4) "mail"
    ["Sendmail"]=>
    string(18) "/usr/sbin/sendmail"
    ["PluginDir"]=>
    string(0) ""
    ["ConfirmReadingTo"]=>
    string(0) ""
    ["Hostname"]=>
    string(0) ""
    ["MessageID"]=>
    string(0) ""
    ["Host"]=>
    string(9) "localhost"
    ["Port"]=>
    int(25)
    ["Helo"]=>
    string(0) ""
    ["SMTPSecure"]=>
    string(3) "tls"
    ["SMTPAuth"]=>
    bool(false)
    ["Username"]=>
    string(0) ""
    ["Password"]=>
    string(0) ""
    ["Timeout"]=>
    int(10)
    ["SMTPDebug"]=>
    int(2)
    ["SMTPKeepAlive"]=>
    bool(false)
    ["SingleTo"]=>
    bool(false)
    ["SingleToArray"]=>
    array(0) {
    }
    ["LE"]=>
    string(1) "
    "
    ["DKIM_selector"]=>
    string(9) "phpmailer"
    ["DKIM_identity"]=>
    string(0) ""
    ["DKIM_passphrase"]=>
    string(0) ""
    ["DKIM_domain"]=>
    string(0) ""
    ["DKIM_private"]=>
    string(0) ""
    ["action_function"]=>
    string(0) ""
    ["Version"]=>
    string(5) "5.2.1"
    ["XMailer"]=>
    string(0) ""
    ["smtp:protected"]=>
    NULL
    ["to:protected"]=>
    array(1) {
    [0]=>
    array(2) {
    [0]=>
    string(29) "sgoldstein@goldsteinmedia.com"
    [1]=>
    string(0) ""
    }
    }
    ["cc:protected"]=>
    array(0) {
    }
    ["bcc:protected"]=>
    array(0) {
    }
    ["ReplyTo:protected"]=>
    array(0) {
    }
    ["all_recipients:protected"]=>
    array(1) {
    ["sgoldstein@goldsteinmedia.com"]=>
    bool(true)
    }
    ["attachment:protected"]=>
    array(0) {
    }
    ["CustomHeader:protected"]=>
    array(0) {
    }
    ["message_type:protected"]=>
    string(5) "plain"
    ["boundary:protected"]=>
    array(3) {
    [1]=>
    string(35) "b1_8e37f6eb8a4876e15c0903fbc8450cf4"
    [2]=>
    string(35) "b2_8e37f6eb8a4876e15c0903fbc8450cf4"
    [3]=>
    string(35) "b3_8e37f6eb8a4876e15c0903fbc8450cf4"
    }
    ["language:protected"]=>
    array(0) {
    }
    ["error_count:protected"]=>
    int(0)
    ["sign_cert_file:protected"]=>
    string(0) ""
    ["sign_key_file:protected"]=>
    string(0) ""
    ["sign_key_pass:protected"]=>
    string(0) ""
    ["exceptions:protected"]=>
    bool(false)
    }

    Any ideas?

    Posted 10 years ago on Monday June 18, 2012 | Permalink
  9. I have the same problem, how about you guys look it and get it sorted. Tried the plugin.

    Posted 10 years ago on Tuesday June 19, 2012 | Permalink
  10. You could always try checking for a theme/plugin conflict by following the instructions here:
    http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    I have seen instances where a plugin that was trying to utilize the WP_Mail incorrectly was interfering.

    @akelsall - This isn't an issue with Gravity Forms - notification and email sending is going to be up to your host to send out. There are a variety of factors that come into play with email reliability and none of them are things Gravity Forms itself controls. Gravity Forms simply passes the Send To, Send From, Subject and Message of the email to the core WordPress wp_mail() function and that is where it's involvement ends. It is then entirely up to your web server to reliably send the email.

    The best article I have found that discusses how to make your WordPress site more reliable at sending email is this one by Joost de Valk:

    http://yoast.com/email-reliability/

    His article discusses improving email reliability for comment related emails sent by WordPress. But it is directly applicable to email reliability with Gravity Forms because both of them use the same core WordPress function to send email the exact same way using the wp_mail() function.

    Posted 10 years ago on Tuesday June 19, 2012 | Permalink