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.

Are there any debug options for troubleshooting mail delivery?

  1. Every once in a while I don't receive an email notification for a form submission, but in most cases I do. I have alternately used the default wp_mail(), WP SMTP by Callum Macdonald and Configure SMTP by Scott Reilly, using both my host's SMTP server and Gmail, various ports, SSL and not. Results have varied but it is always so intermittent that an email won't arrive I never know if it's from the choice of plugin or some other random bit of information.

    So, I am wondering if there is a way to turn on debugging or at least log mail being sent by Gravity Forms, to troubleshoot this more thoroughly and maybe find out where the email delivery sometimes fails.

    Thanks

    Posted 13 years ago on Tuesday June 29, 2010 | Permalink
  2. I'm not aware of any way to troubleshoot or log it. Gravity Forms uses the built in WordPress function wp_mail() to send the notifications. After it fires the wp_mail() function it has nothing more to do with the email notifications. It doesn't know if the email did or did not get sent because there is no response back to the wp_mail() function itself to let you know if the email was sent.

    The wp_mail() function itself has no notification, it fires another PHP function to send the actual email. The email itself is a function of your web server and the configuration of your host. SMTP is typically a more reliable way to send email, however it's still reliant on the SMTP server it's configured to use.

    So ultimately the email isn't really sent by Gravity Forms or WordPress, it's reliant on your web host reliably sending the email.

    If anyone else has any suggestions on this side of things, we'd love to hear them.

    Posted 13 years ago on Tuesday June 29, 2010 | Permalink
  3. How about adding SMTP support to Gravity Forms, since SMTP is more reliable?

    Posted 13 years ago on Tuesday June 29, 2010 | Permalink
  4. We chose not to include direct SMTP support in Gravity Forms for two reasons.

    One is most users never need to utilize SMTP and have no problems with the email notifications and two we use the built in WordPress send mail function and there are plenty of free plugins available that tell WordPress to send mail via SMTP.

    If Gravity Forms had it's own mail function we would have added direct SMTP support, but it relies on WordPress to send the notification emails. We didn't want to reinvent the wheel and introduce possible code bloat when WordPress already had the functionality built in.

    We try to keep things as streamlined as possible by leveraging what WordPress can already do.

    Posted 13 years ago on Tuesday June 29, 2010 | Permalink