<?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: Attachment on Confirmation Email for Specific Form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/attachment-on-confirmation-email-for-specific-form</link>
		<description>Gravity Support Forums Topic: Attachment on Confirmation Email for Specific Form</description>
		<language>en-US</language>
		<pubDate>Tue, 14 Apr 2026 09:03:05 +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/attachment-on-confirmation-email-for-specific-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Attachment on Confirmation Email for Specific Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/attachment-on-confirmation-email-for-specific-form#post-117793</link>
			<pubDate>Wed, 09 Jan 2013 16:12:14 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">117793@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You're welcome.  Good luck.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>HFL on "Attachment on Confirmation Email for Specific Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/attachment-on-confirmation-email-for-specific-form#post-117685</link>
			<pubDate>Wed, 09 Jan 2013 11:56:02 +0000</pubDate>
			<dc:creator>HFL</dc:creator>
			<guid isPermaLink="false">117685@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Brilliant. Thanks yet again, Chris.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Attachment on Confirmation Email for Specific Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/attachment-on-confirmation-email-for-specific-form#post-117120</link>
			<pubDate>Tue, 08 Jan 2013 21:37:48 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">117120@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;On line one, add the form number to the end of your filter.  For example, if you want to add the attachments only to submissions for form 17, line 01 should look like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;quot;gform_user_notification_attachments_17&#38;quot;, &#38;quot;add_attachment&#38;quot;, 10, 3);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you want to target form 5, use this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;quot;gform_user_notification_attachments_5&#38;quot;, &#38;quot;add_attachment&#38;quot;, 10, 3);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The filter is documented here:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_user_notification_attachments&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_user_notification_attachments&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>HFL on "Attachment on Confirmation Email for Specific Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/attachment-on-confirmation-email-for-specific-form#post-116983</link>
			<pubDate>Tue, 08 Jan 2013 19:12:57 +0000</pubDate>
			<dc:creator>HFL</dc:creator>
			<guid isPermaLink="false">116983@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Referencing this thread: &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/use-pre-selected-file-as-user-notification-attachment&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/use-pre-selected-file-as-user-notification-attachment&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And this code specifically:&#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;
&#60;p&#62;This function is working properly, but I need to specify the attachment is only attached to confirmations for a single form. How can I do that?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
