Hi,
is possible to send the file attached to the mail and not the link?
Thanks
Hi,
is possible to send the file attached to the mail and not the link?
Thanks
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
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?
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.
Glad you figured it out and thanks for posting your solution.