# Obtain a record of all emails sent by Gravity Forms?

**URL:** <https://community.gravityforms.com/t/obtain-a-record-of-all-emails-sent-by-gravity-forms/4170>\
**Category:** Get Help\
**Tags:** custom, email, logging, save-and-continue\
**Created:** [March 12, 2020, 8:37pm UTC](https://community.gravityforms.com/t/obtain-a-record-of-all-emails-sent-by-gravity-forms/4170 "2020-03-12T20:37:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5aba98dc3a7e31.6](https://avatars.discourse-cdn.com/v4/letter/u/b782af/32.png) [@user5aba98dc3a7e31.6](https://community.gravityforms.com/u/user5aba98dc3a7e31.6)\
**Post date:** [March 12, 2020, 8:37pm UTC](https://community.gravityforms.com/t/obtain-a-record-of-all-emails-sent-by-gravity-forms/4170/1 "2020-03-12T20:37:40Z")

</div>

Hi all!

We have someone who used the “save and complete later” function of a form on our site, and claims the email with the link to continue never arrived. Is there a way to look at a record of emails that GF has sent via wp\_mail()? I have looked around and see some plugins I can add that will give me this visibility, but I wasn’t sure if the direct implication of those was that there was 100% no way to access that record any other way through GF and Wordpress as they exist now (without any plugin displaying automatic email records).

Thanks!

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [March 13, 2020, 2:18pm UTC](https://community.gravityforms.com/t/obtain-a-record-of-all-emails-sent-by-gravity-forms/4170/2 "2020-03-13T14:18:25Z")

</div>

It is logged in the Gravity Forms Core log if you have logging enabled. It looks like this:

```auto
2020-03-13 9:07:33.319200 - DEBUG --> GFFormDisplay::process_send_resume_link(): Processing notifications for form_save_email_requested event. 
2020-03-13 9:07:33.319523 - DEBUG --> GFCommon::send_notification(): Starting to process notification (#5e614fa8895d5 - Save and Continue Email). 
2020-03-13 9:07:33.319587 - DEBUG --> gform_notification: change_notification_format() running. 
2020-03-13 9:07:33.320697 - DEBUG --> GFCommon::send_email(): Sending email via wp_mail(). 
2020-03-13 9:07:33.320760 - DEBUG --> Array
(
    [to] => [redacted]@gmail.com
    [subject] => Link to continue 4 v 4 - 2017 Registration Form - 
    [message] => <html>
	<head>
		<title>Link to continue 4 v 4 - 2017 Registration Form - </title>
	</head>
	<body>
		Thank you for saving 4 v 4 - 2017 Registration Form - . Please use the unique link below to return to the form from any computer. <br /><br /> <a href="[SITE REMOVED]/?gf_page=preview&#038;id=514&#038;gf_token=547fb81d0fa542669f0a7337a1aaab88" class='resume_form_link'>[SITE REMOVED]/?gf_page=preview&#038;id=514&#038;gf_token=547fb81d0fa542669f0a7337a1aaab88</a> <br /><br /> Remember that the link will expire after 30 days so please return via the provided link to complete your form submission.
	</body>
</html>
    [headers] => Array
        (
            [From] => From: "support@email.com" <support@email.com>
            [Content-type] => Content-type: text/html; charset=UTF-8
        )

    [attachments] => Array
        (
        )

    [abort_email] => 
)
 
2020-03-13 9:07:33.409097 - DEBUG --> GFCommon::send_email(): Result from wp_mail(): 1 
2020-03-13 9:07:33.409224 - DEBUG --> GFCommon::send_email(): WordPress successfully passed the notification email (#5e614fa8895d5 - Save and Continue Email) to the sending server. 

```

I’m not sure what the plugins do differently (maybe send an additional notification or log that somewhere else)?

---

<div class="post-metadata">

**Author:** ![user5aba98dc3a7e31.6](https://avatars.discourse-cdn.com/v4/letter/u/b782af/32.png) [@user5aba98dc3a7e31.6](https://community.gravityforms.com/u/user5aba98dc3a7e31.6)\
**Post date:** [March 13, 2020, 4:35pm UTC](https://community.gravityforms.com/t/obtain-a-record-of-all-emails-sent-by-gravity-forms/4170/3 "2020-03-13T16:35:51Z")

</div>

Thanks! So if we did not have logging enabled, no dice then?

(We typically don’t enable logging if there’s not a specific error we are trying to debug. Are we wrong about that being best practice? Should we have it enabled always?)

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [March 13, 2020, 5:22pm UTC](https://community.gravityforms.com/t/obtain-a-record-of-all-emails-sent-by-gravity-forms/4170/4 "2020-03-13T17:22:31Z")

</div>

I would not say that having logging enabled is a best practice. The log files can be huge and can contain information you don’t want public. I would not leave logging active for long. I was just mentioning that it’s captured in the log.

If logging was not enabled, then there is no record of the notification being sent. You may be able to customize something for future notifications, but it would not help you find out about any in the past. I’m curious what the other plugins are that you have found, and what they do.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [March 13, 2020, 5:35pm UTC](https://community.gravityforms.com/t/obtain-a-record-of-all-emails-sent-by-gravity-forms/4170/5 "2020-03-13T17:35:04Z")

</div>

You could probably create your own log of all notifications sent by Gravity Forms (or just Save and Continue emails if you wanted to do that) using the gform\_pre\_send\_email filter:

> **[gform\_pre\_send\_email - Gravity Forms Documentation](https://docs.gravityforms.com/gform_pre_send_email/)**
>
> Use this filter to modify the email before a notification has been sent. You may also use this to prevent an email from being sent.

That is run for every notification that is sent. You could create your own log or email a note to yourself if you wanted to.

---

<div class="post-metadata">

**Author:** ![user5aba98dc3a7e31.6](https://avatars.discourse-cdn.com/v4/letter/u/b782af/32.png) [@user5aba98dc3a7e31.6](https://community.gravityforms.com/u/user5aba98dc3a7e31.6)\
**Post date:** [March 13, 2020, 6:40pm UTC](https://community.gravityforms.com/t/obtain-a-record-of-all-emails-sent-by-gravity-forms/4170/6 "2020-03-13T18:40:32Z")

</div>

Hey Chris,

Thank you so much!! Understood on your first reply. I think I was looking at [https://wordpress.org/plugins/email-log/](https://wordpress.org/plugins/email-log/), which now that I think about it I’m not sure if that would include GF emails or only do WP emails like password resets and such. I had not chased it too far. I will look into the option you suggested - thanks again!

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [March 13, 2020, 9:29pm UTC](https://community.gravityforms.com/t/obtain-a-record-of-all-emails-sent-by-gravity-forms/4170/7 "2020-03-13T21:29:22Z")

</div>

Let us know what you come up with!

---

<div class="post-metadata">

**Author:** ![Jake\_Jackson](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/jake_jackson/32/14685_2.png) [@Jake\_Jackson](https://community.gravityforms.com/u/Jake_Jackson)\
**Post date:** [March 23, 2020, 12:08am UTC](https://community.gravityforms.com/t/obtain-a-record-of-all-emails-sent-by-gravity-forms/4170/8 "2020-03-23T00:08:14Z")

</div>

Personally, I’d setup and configure WordPress to use a dedicated SMTP provider like Mailgun, SendJet, or SendinBlue which will keep a log of all email activity passing through its service. It’s a great way to get emails landing in inboxes and keeping track of problems that might occur with mail delivery.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [March 23, 2020, 3:02am UTC](https://community.gravityforms.com/t/obtain-a-record-of-all-emails-sent-by-gravity-forms/4170/9 "2020-03-23T03:02:23Z")

</div>

[![](https://media.giphy.com/media/wsWWb4YliNdvYKuPkS/giphy.gif) ](https://media.giphy.com/media/wsWWb4YliNdvYKuPkS/giphy.gif)

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 5, 2022, 8:51am UTC](https://community.gravityforms.com/t/obtain-a-record-of-all-emails-sent-by-gravity-forms/4170/10 "2022-01-05T08:51:07Z")

</div>

Closed on January 5, 2022, 8:51am UTC


