<?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: Sending CSV attachment on form submit</title>
		<link>https://legacy.forums.gravityhelp.com/topic/sending-csv-attachment-on-form-submit</link>
		<description>Gravity Support Forums Topic: Sending CSV attachment on form submit</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 07:26:22 +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/sending-csv-attachment-on-form-submit" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Sending CSV attachment on form submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sending-csv-attachment-on-form-submit#post-84675</link>
			<pubDate>Mon, 29 Oct 2012 08:58:39 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">84675@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please begin a new topic in the &#60;a href=&#34;http://www.gravityhelp.com/forums/forum/gravity-forms#postform&#34; rel=&#34;nofollow&#34;&#62;regular support forums&#60;/a&#62;. We don't normally handle support in the pre-purchase forums.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nsund on "Sending CSV attachment on form submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sending-csv-attachment-on-form-submit#post-84669</link>
			<pubDate>Mon, 29 Oct 2012 08:50:14 +0000</pubDate>
			<dc:creator>nsund</dc:creator>
			<guid isPermaLink="false">84669@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;HI&#60;/p&#62;
&#60;p&#62;I have the following code to attach documents in my functions.php file, if I wanted to add a file ID with the csv attached how would I amend the code so that it still sends these files and the csv to another form, for example form 1?&#60;br /&#62;
CODE in functions.php:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?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) {

    if ( $form[ &#38;#39;id&#38;#39; ] == 17 )  {
        $doc = &#38;#39;/The-Membership-Rules.pdf&#38;#39;;
    } elseif( $form[ &#38;#39;id&#38;#39; ] == 22 ) {
        $doc = &#38;#39;/The-Membership-Rules.pdf&#38;#39;;
    } else {
      $doc = &#38;#39;&#38;#39;;
    }

    $upload = wp_upload_dir();
    $upload_path = $upload[&#38;quot;basedir&#38;quot;];

    $attachments = array();
    $attachments[] = $upload_path . $doc;

    return $attachments;

}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks&#60;br /&#62;
Nic
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Sending CSV attachment on form submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sending-csv-attachment-on-form-submit#post-62046</link>
			<pubDate>Sun, 10 Jun 2012 22:52:36 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">62046@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can create a custom CSV and send that as an attachment to the email.  You would use a couple of filters and hooks which are built in to Gravity Forms.  Specifically, gform_after_submission and gform_user_notification_attachments.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#60;/a&#62;&#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;
&#60;p&#62;You would create your custom CSV using a subset of the data which was submitted, then you would attach the CSV to the user notification. &#60;/p&#62;
&#60;p&#62;What you want to accomplish is possible using built-in Gravity Forms and WordPress/PHP functions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ddemuth on "Sending CSV attachment on form submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sending-csv-attachment-on-form-submit#post-61962</link>
			<pubDate>Fri, 08 Jun 2012 15:51:50 +0000</pubDate>
			<dc:creator>ddemuth</dc:creator>
			<guid isPermaLink="false">61962@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Would like to purchase developer version.&#60;/p&#62;
&#60;p&#62;But as confirmation email is sent to client, is it possible to attach a csv to this email with only certain fields included?&#60;/p&#62;
&#60;p&#62;If not, is there an alternative feature you can suggest?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
