I would like to send a PDF attachment to the people that submit one of my forms. I'm already sending a user notification, I just need to add an attachment to it. I saw the filter documentation but I'm having trouble making this work. What do I do?
I would like to send a PDF attachment to the people that submit one of my forms. I'm already sending a user notification, I just need to add an attachment to it. I saw the filter documentation but I'm having trouble making this work. What do I do?
Was the what you were referencing?
http://www.gravityhelp.com/documentation/page/Gform_user_notification_attachments
Can you provide the code you used?
Well I just added this to my themes function.php
<?php
add_filter("gform_user_notification_attachments", "add_attachment", 10, 3);
?>
Well, thats about 1/3 the battle. ;)
Check out this post for an example: http://www.gravityhelp.com/forums/topic/use-pre-selected-file-as-user-notification-attachment#post-53767
Would I replace the /my_file.jpg with the full path to the file or just the path from the uploads:
http://good2go2.iconixgp.com/wp-content/uploads/2012/05/ServiceAgreement.pdf
or
/2012/05/ServiceAgreement.pdf
It looks like you would just put the filename. ServiceAgreement.pdf
Honestly, I have not used this feature before, so you might need to do some testing to see which one works. But I'd stick with just trying filename first.
Hello onestcorder, did you get this to work? I'm trying the same thing.
Marc
I figured this out. Didn't realize I had to keep "basedir" verbatim (I tried replacing it with the base directory).