<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums User Favorites: JenF</title>
		<link><a href='https://legacy.forums.gravityhelp.com/profile/jenf'>jenf</a></link>
		<description>Gravity Support Forums User Favorites: JenF</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:01:57 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>anjoalre on "Can&#039;t attach file to user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-attach-file-to-user-notification#post-58273</link>
			<pubDate>Wed, 09 May 2012 05:11:39 +0000</pubDate>
			<dc:creator>anjoalre</dc:creator>
			<guid isPermaLink="false">58273@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Alex,&#60;br /&#62;
i've discovered my mistake, i had the user notification email disabled and was sending only the administrator notification. It's working now!&#60;br /&#62;
Maybe JenF mistake is the same...&#60;br /&#62;
Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Can&#039;t attach file to user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-attach-file-to-user-notification#post-58215</link>
			<pubDate>Tue, 08 May 2012 15:09:15 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">58215@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you paste your code i will be happy to take a look at it and try to see what is going on
&#60;/p&#62;</description>
		</item>
		<item>
			<title>anjoalre on "Can&#039;t attach file to user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-attach-file-to-user-notification#post-58164</link>
			<pubDate>Tue, 08 May 2012 12:03:50 +0000</pubDate>
			<dc:creator>anjoalre</dc:creator>
			<guid isPermaLink="false">58164@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Alex,&#60;/p&#62;
&#60;p&#62;I'm having the same problem as JenF, the email is send but the the attach file is not.&#60;br /&#62;
First i thought it was because of being in localhost, but now i'm live.&#60;/p&#62;
&#60;p&#62;Please shed some light,&#60;br /&#62;
best regards,
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Can&#039;t attach file to user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-attach-file-to-user-notification#post-55037</link>
			<pubDate>Thu, 12 Apr 2012 11:21:41 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">55037@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Jennifer,&#60;br /&#62;
The code above looks good. I could take a quick look at your server and get it working for you if you can send me an admin login to your WP dashboard as well as an FTP login to &#60;a href=&#34;mailto:alex@rocketgenius.com&#34;&#62;alex@rocketgenius.com&#60;/a&#62;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JenF on "Can&#039;t attach file to user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-attach-file-to-user-notification#post-54994</link>
			<pubDate>Wed, 11 Apr 2012 19:55:16 +0000</pubDate>
			<dc:creator>JenF</dc:creator>
			<guid isPermaLink="false">54994@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;br /&#62;
I'm the original poster of this post:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/use-pre-selected-file-as-user-notification-attachment#post-53767&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/use-pre-selected-file-as-user-notification-attachment#post-53767&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;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).&#60;/p&#62;
&#60;p&#62;The original post was closed which is why I'm starting this thread.&#60;/p&#62;
&#60;p&#62;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.&#60;/p&#62;
&#60;p&#62;This is what's in my functions.php file:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/** Add support for attachment on Gravity Form 2 (Request vCard) */
	add_filter(&#38;#39;gform_user_notification_attachments_2&#38;#39;, &#38;#39;add_attachment&#38;#39;, 10, 3);
function add_attachment($attachments, $lead, $form){

    //getting wordpress upload folder
    $upload = wp_upload_dir();
    $upload_path = $upload[&#38;#39;basedir&#38;#39;];

    $attachments = array();

    //add a file from the uploads folder
    $attachments[] = $upload_path . &#38;#39;/2012/JenniferFeurer.vcf&#38;#39;;

    return $attachments;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Alex, any help would be appreciated. Is there a gravity forms log file that could tell me where the problem is?&#60;/p&#62;
&#60;p&#62;At this point I'm willing to hire someone to resolve the issue if they have a solution. &#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Jennifer
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jonny on "Use pre-selected file as user notification attachment"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-pre-selected-file-as-user-notification-attachment#post-53840</link>
			<pubDate>Fri, 30 Mar 2012 07:12:45 +0000</pubDate>
			<dc:creator>jonny</dc:creator>
			<guid isPermaLink="false">53840@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Great stuff, Alex, thank you - that works perfectly :o)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Elena on "Use pre-selected file as user notification attachment"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-pre-selected-file-as-user-notification-attachment#post-53833</link>
			<pubDate>Fri, 30 Mar 2012 05:50:29 +0000</pubDate>
			<dc:creator>Elena</dc:creator>
			<guid isPermaLink="false">53833@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Alex: so beautifully working on our sites!!&#60;br /&#62;
Thanks guys, you rock!&#60;/p&#62;
&#60;p&#62;E.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Use pre-selected file as user notification attachment"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-pre-selected-file-as-user-notification-attachment#post-53767</link>
			<pubDate>Thu, 29 Mar 2012 10:08:20 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">53767@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry. There was a small problem with the code I posted earlier. Here it is again (this time it should work)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_user_notification_attachments&#38;quot;, &#38;quot;add_attachment&#38;quot;, 10, 3);
function add_attachment($attachments, $lead, $form){

    //getting wordpress upload folder
    $upload = wp_upload_dir();
    $upload_path = $upload[&#38;quot;basedir&#38;quot;];

    $attachments = array();

    //add a file from the uploads folder
    $attachments[] = $upload_path . &#38;quot;/my_file.jpg&#38;quot;;

    return $attachments;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>jonny on "Use pre-selected file as user notification attachment"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-pre-selected-file-as-user-notification-attachment#post-53742</link>
			<pubDate>Thu, 29 Mar 2012 05:20:12 +0000</pubDate>
			<dc:creator>jonny</dc:creator>
			<guid isPermaLink="false">53742@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;bumping post - alex, have you had any further ideas as to why that code might not work?&#60;/p&#62;
&#60;p&#62;thanks,&#60;/p&#62;
&#60;p&#62;Jon.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jonny on "Use pre-selected file as user notification attachment"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-pre-selected-file-as-user-notification-attachment#post-53565</link>
			<pubDate>Tue, 27 Mar 2012 08:41:24 +0000</pubDate>
			<dc:creator>jonny</dc:creator>
			<guid isPermaLink="false">53565@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi - same as JenF:&#60;/p&#62;
&#60;p&#62;add_filter(&#34;gform_user_notification_attachments_6&#34;, &#34;add_attachment&#34;, 10, 3);&#60;br /&#62;
function add_attachment($attachments, $lead, $form){&#60;br /&#62;
    //getting wordpress upload folder&#60;br /&#62;
    $upload = wp_upload_dir();&#60;br /&#62;
    $upload_path = $upload[&#34;path&#34;];&#60;br /&#62;
    $attachments = array();&#60;br /&#62;
    //add a file from the uploads folder&#60;br /&#62;
    $attachments[] = $upload_path . &#34;/2012/03/Easy-Quote-16032012.xlsx&#34;;&#60;br /&#62;
    return $attachments;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;The user notification mail is sent but no attachment:
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
