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.

Send CSV of submitted entry along with email

  1. Hi
    I am looking for pointers and information on how I would achieve attaching a CSV file of a submission to the email notification that gets sent to an administrator. As far as I can tell there is no API for the CSV generation. So the process will likely need to be:

    1. Hook into the form save and generate a CSV file
    2. Store that CSV file on the server
    3. Attach that CSV to the email that gets sent to the admin or perhaps send it afterwards

    My big concern is that I will not be able to generate the CSV before the email gets sent.

    Any thoughts would be greatly appreciated.

    Scott

    Posted 7 years ago on Tuesday October 18, 2011 | Permalink
  2. You can generate the CSV from the entry before the email is sent by using the gform_pre_submission filter. It will have all the form inputs, after validation, and before the notifications are sent.

    The rest of the process seems straightforward. Please let us know if you need help.

    Posted 7 years ago on Tuesday October 18, 2011 | Permalink