<?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 Topic: gform_user_notification_attachments</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_user_notification_attachments</link>
		<description>Gravity Support Forums Topic: gform_user_notification_attachments</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:33:56 +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/topic/gform_user_notification_attachments" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "gform_user_notification_attachments"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_user_notification_attachments#post-73164</link>
			<pubDate>Wed, 29 Aug 2012 17:42:36 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">73164@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you dump the value of the $attachments array before you return it, to see what it contains?  If it does not look correct, work your way backward through the code to see which part is not returning the expected value.&#60;/p&#62;
&#60;p&#62;Also, be sure the file exists and has the proper permissions in the location you are trying to load it from as an email attachment.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ritchie on "gform_user_notification_attachments"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_user_notification_attachments#post-73033</link>
			<pubDate>Wed, 29 Aug 2012 04:00:07 +0000</pubDate>
			<dc:creator>Ritchie</dc:creator>
			<guid isPermaLink="false">73033@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;i have insert this piece of code in my functions.php of my theme:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
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;/Algemene-Voorwaarden-Doxis.pdf&#38;quot;;

    return $attachments;
}&#38;#39;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But the PDF file isn't send with the user notification.. How come??
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
