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.

Add uploaded file into the mail

  1. pettedemon
    Member

    Hi,
    is possible to send the file attached to the mail and not the link?
    Thanks

    Posted 11 years ago on Monday December 10, 2012 | Permalink
  2. David Peralty

    If you are looking for adding a user attachment, you'll want to read the hook and documentation here:

    http://www.gravityhelp.com/documentation/page/Gform_user_notification_attachments

    Posted 11 years ago on Monday December 10, 2012 | Permalink
  3. Hello,
    I have followed the documentation at http://www.gravityhelp.com/documentation/page/Gform_user_notification_attachments, pasting the code exactly as its given. However, files are not attached to notification emails for me.

    Am I missing something? should some of those values relate specifically to my form ID or input field ID?

    Posted 11 years ago on Wednesday January 2, 2013 | Permalink
  4. ok, I just did some digging into the developer docs, and noticed a separate hook "gform_admin_notification_attachments" which i didnt see mentioned in the Gform user notification attachments documentation.

    Since I want teh attachment to be on the admin notification, I replaced this filter:
    add_filter("gform_user_notification_attachments", "add_attachment", 10, 3);

    with this one:

    add_filter("gform_admin_notification_attachments", "add_attachment", 10, 3);

    and the notifications are now including attachments as expected.

    just thought i would mention this in case anyone else is missing the same thing in their attempt to include file attachments in admin notification of the form submission.

    thanks.

    Posted 11 years ago on Wednesday January 2, 2013 | Permalink
  5. David Peralty

    Glad you figured it out and thanks for posting your solution.

    Posted 11 years ago on Wednesday January 2, 2013 | Permalink