Hello,
I'm the original poster of this post:
http://www.gravityhelp.com/forums/topic/use-pre-selected-file-as-user-notification-attachment#post-53767
I was away when Alex posted the updated code that solved the issue for the other two people who responded to that post. Unfortunately, I'm still having the same problem as before (the notification email gets sent out but there is no file attached to it).
The original post was closed which is why I'm starting this thread.
I cut and pasted the code exactly as shown in the post. I've double checked my file location and case. I've also tried it with and without a form id on the filter, all with no luck.
This is what's in my functions.php file:
/** Add support for attachment on Gravity Form 2 (Request vCard) */
add_filter('gform_user_notification_attachments_2', 'add_attachment', 10, 3);
function add_attachment($attachments, $lead, $form){
//getting wordpress upload folder
$upload = wp_upload_dir();
$upload_path = $upload['basedir'];
$attachments = array();
//add a file from the uploads folder
$attachments[] = $upload_path . '/2012/JenniferFeurer.vcf';
return $attachments;
}
Alex, any help would be appreciated. Is there a gravity forms log file that could tell me where the problem is?
At this point I'm willing to hire someone to resolve the issue if they have a solution.
Thanks,
Jennifer