<?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: Email Notification: Send a pdf via email</title>
		<link>https://legacy.forums.gravityhelp.com/topic/email-notification-send-a-pdf-via-email</link>
		<description>Gravity Support Forums Topic: Email Notification: Send a pdf via email</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 11:09:08 +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/email-notification-send-a-pdf-via-email" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Email Notification: Send a pdf via email"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/email-notification-send-a-pdf-via-email#post-168482</link>
			<pubDate>Tue, 12 Mar 2013 01:58:52 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">168482@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you try hard-coding the path to the file on line 11, instead of relying on those variables, and see if that works?  We need to see where this is breaking down.&#60;/p&#62;
&#60;p&#62;You could also print_r the $upload array on line 5.5 and print_r the $attachments array on line 12, as temporary debugging steps.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ddematas on "Email Notification: Send a pdf via email"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/email-notification-send-a-pdf-via-email#post-164709</link>
			<pubDate>Fri, 08 Mar 2013 14:43:00 +0000</pubDate>
			<dc:creator>ddematas</dc:creator>
			<guid isPermaLink="false">164709@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I tried&#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;and i cant get this to work.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
