<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: sending email attachments</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: sending email attachments</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:08:05 +0000</pubDate>

<item>
<title>williamansley on "sending email attachments"</title>
<link>https://www.machform.com/forums/topic/sending-email-attachments#post-24833</link>
<pubDate>Thu, 04 Feb 2016 23:12:40 +0000</pubDate>
<dc:creator>williamansley</dc:creator>
<guid isPermaLink="false">24833@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;@chickc: OK, that makes sense. Currently, Machform doesn't create email attachments for notification emails. You can't make it do that without modifying the base code, and I can't help you with that. It seems like a useful feature; I hope Appnitro is listening.&#60;/p&#62;
&#60;p&#62;But you can get a similar effect by using email logic, if your client is willing to have a slight modification made made to the specifications, and if you are using version 3.5 or newer of Machform, so that it supports email logic. The specification modification I mentioned is that the email will contain a link to the appropriate file on a web server (or other server). The file will be downloaded by clicking on the link in the email. Upload the PDF files to an acceptable location. Create a separate email template for each file, with a link to the appropriate PDF file. Then use email logic to chose the proper email template based on which checkbox is chosen.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.appnitro.com/blog-conditional-logic-for-notification-emails&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/blog-conditional-logic-for-notification-emails&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;One downside is that, since your client wants to allow the user to chose any combination of the four forms with checkboxes, the user could receive as many as four separate emails for one form submission, which may be perceived as inconvenient. However, on the plus side, you can add a meaningful subject line for each email, potentially making it easier for the user to find the appropriate email later on, if they want another copy of the PDF.
&#60;/p&#62;</description>
</item>
<item>
<title>chickc on "sending email attachments"</title>
<link>https://www.machform.com/forums/topic/sending-email-attachments#post-24831</link>
<pubDate>Thu, 04 Feb 2016 09:51:46 +0000</pubDate>
<dc:creator>chickc</dc:creator>
<guid isPermaLink="false">24831@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Well, if the client doesn't want his visitor to download all of his product pdf's (could be confusing) and wants to know which product the client is most interested in, it would be best for the visitor to select the product information from the form and then deliver that specific pdf in an email back to the visitor. &#60;/p&#62;
&#60;p&#62;This gives my client a lead that shows the person's name, email address, phone and which specific product they are interested in. But if we just send them to a product download page from a link, we are exposing where others can find it without bothering to fill out a lead generating form.&#60;/p&#62;
&#60;p&#62;Does that make better sense?
&#60;/p&#62;</description>
</item>
<item>
<title>williamansley on "sending email attachments"</title>
<link>https://www.machform.com/forums/topic/sending-email-attachments#post-24825</link>
<pubDate>Thu, 04 Feb 2016 00:07:50 +0000</pubDate>
<dc:creator>williamansley</dc:creator>
<guid isPermaLink="false">24825@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Why not just have links to all of the PDFs on a web page, from which the user can download the ones that are wanted? I am asking because there may be alternative ways of doing something similar to what your client wants, but I don't think I really understand the requirements, since they don't make much sense to me, as you describe them.
&#60;/p&#62;</description>
</item>
<item>
<title>chickc on "sending email attachments"</title>
<link>https://www.machform.com/forums/topic/sending-email-attachments#post-24824</link>
<pubDate>Wed, 03 Feb 2016 23:36:49 +0000</pubDate>
<dc:creator>chickc</dc:creator>
<guid isPermaLink="false">24824@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi yuniar, long time no talk to. &#60;/p&#62;
&#60;p&#62;Just like  nunya above I have a client that would like to create a form with 4 check boxes on it where the visitor can select which product  infoPDF file(s) they want sent to them (as an attachment to the confirmation email sent to them).&#60;/p&#62;
&#60;p&#62;Is there a way to do that?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "sending email attachments"</title>
<link>https://www.machform.com/forums/topic/sending-email-attachments#post-12341</link>
<pubDate>Wed, 20 Jul 2011 19:28:04 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">12341@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You can add a condition into the code which attach the file.&#60;/p&#62;
&#60;p&#62;So, if your current code is something like this:&#60;/p&#62;
&#60;p&#62;$mail-&#38;gt;AddAttachment('my_file.pdf');&#60;br /&#62;
you can change it to become:&#60;/p&#62;
&#60;p&#62;if($target_is_admin == false){&#60;br /&#62;
   $mail-&#38;gt;AddAttachment('my_file.pdf');&#60;br /&#62;
}&#60;br /&#62;
That should prevent the file being sent to admin.
&#60;/p&#62;</description>
</item>
<item>
<title>liz-ether on "sending email attachments"</title>
<link>https://www.machform.com/forums/topic/sending-email-attachments#post-12336</link>
<pubDate>Mon, 18 Jul 2011 23:58:40 +0000</pubDate>
<dc:creator>liz-ether</dc:creator>
<guid isPermaLink="false">12336@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;How do I put the form ID in there?   Mine is form id 11.  And I don't understand how not to send the attachment to the admin.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>grandeland on "sending email attachments"</title>
<link>https://www.machform.com/forums/topic/sending-email-attachments#post-10400</link>
<pubDate>Wed, 08 Sep 2010 00:54:02 +0000</pubDate>
<dc:creator>grandeland</dc:creator>
<guid isPermaLink="false">10400@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;When I add this line: &#60;/p&#62;
&#60;p&#62;$mail-&#38;gt;AddAttachment('./data/form_'.$form_id.'/files/'.'filename.ext');&#60;/p&#62;
&#60;p&#62;I don't visibaly notice anything changing in the form.  Any Ideas?
&#60;/p&#62;</description>
</item>
<item>
<title>nunya on "sending email attachments"</title>
<link>https://www.machform.com/forums/topic/sending-email-attachments#post-8103</link>
<pubDate>Thu, 03 Dec 2009 05:22:20 +0000</pubDate>
<dc:creator>nunya</dc:creator>
<guid isPermaLink="false">8103@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I love what you have here...but can we take it a step further?&#60;/p&#62;
&#60;p&#62;We have a form with 4 check boxes on it where the visitor can select which PDF file(s) they want. I want to be able to attach the PDF files they chose to the email response automatically.&#60;/p&#62;
&#60;p&#62;Thank you!
&#60;/p&#62;</description>
</item>
<item>
<title>elvar on "sending email attachments"</title>
<link>https://www.machform.com/forums/topic/sending-email-attachments#post-8000</link>
<pubDate>Fri, 20 Nov 2009 02:38:31 +0000</pubDate>
<dc:creator>elvar</dc:creator>
<guid isPermaLink="false">8000@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I had a support communication with the team and I want to give to all of you easy way how to do it.&#60;/p&#62;
&#60;p&#62;In the helper_functions.php just before this line&#60;/p&#62;
&#60;p&#62;$mail-&#38;gt;Body = $email_content;&#60;/p&#62;
&#60;p&#62;add this line:&#60;/p&#62;
&#60;p&#62;$mail-&#38;gt;AddAttachment('./data/form_'.$form_id.'/files/'.'filename.ext');&#60;/p&#62;
&#60;p&#62;where $form_id is the id of the form. You can use this parameter so all the forms can have some file to attach. If you want to separate the names of the files for each form you can use switch command.&#60;/p&#62;
&#60;p&#62;switch($form_id){&#60;br /&#62;
 case 1   ...&#60;br /&#62;
 ...&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;You can also avoid sending attachment to the emails to notification if it is on. &#60;/p&#62;
&#60;p&#62;if (!$target_is_admin) ...
&#60;/p&#62;</description>
</item>
<item>
<title>elvar on "sending email attachments"</title>
<link>https://www.machform.com/forums/topic/sending-email-attachments#post-7902</link>
<pubDate>Tue, 10 Nov 2009 04:38:54 +0000</pubDate>
<dc:creator>elvar</dc:creator>
<guid isPermaLink="false">7902@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;It is very bad to hear that.&#60;/p&#62;
&#60;p&#62;But I have one tip.&#60;/p&#62;
&#60;p&#62;If I use the Upload file field in the form and make hardcoded predefined file in there and also not able for submitter to change it - this will do the job.&#60;/p&#62;
&#60;p&#62;Can you please give a hint where to start it?&#60;/p&#62;
&#60;p&#62;p.s. I have some sort of knowledge of php...
&#60;/p&#62;</description>
</item>
<item>
<title>philm on "sending email attachments"</title>
<link>https://www.machform.com/forums/topic/sending-email-attachments#post-6844</link>
<pubDate>Wed, 05 Aug 2009 19:57:49 +0000</pubDate>
<dc:creator>philm</dc:creator>
<guid isPermaLink="false">6844@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for your reply. Yes, you've got it spot on.  I currently have a set up where people click a link in the confirmation email, but was hoping it my be possible to attach to the pdf to that email.  Thanks anyway
&#60;/p&#62;</description>
</item>
<item>
<title>AMurray on "sending email attachments"</title>
<link>https://www.machform.com/forums/topic/sending-email-attachments#post-6823</link>
<pubDate>Tue, 04 Aug 2009 18:02:36 +0000</pubDate>
<dc:creator>AMurray</dc:creator>
<guid isPermaLink="false">6823@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Are you asking about attaching the file the user submitted/uploaded or a completely unrelated file that you just want the Machform to send back to the user?&#60;/p&#62;
&#60;p&#62;The auto response email won't attach any files (not even the one submitted with the form)&#60;/p&#62;
&#60;p&#62;What you could do (which would be the nearest and easiest way) is to include a link in the body of the auto reply message to the file, the user would then just open the email, click the link and it would open the PDF in their Adobe reader, rather than opening the file attachment, it would simply be the file sitting on your web server.&#60;/p&#62;
&#60;p&#62;Not sure if I have addressed the question or whether it's more complex a task you want to complete.
&#60;/p&#62;</description>
</item>
<item>
<title>philm on "sending email attachments"</title>
<link>https://www.machform.com/forums/topic/sending-email-attachments#post-6816</link>
<pubDate>Mon, 03 Aug 2009 22:46:54 +0000</pubDate>
<dc:creator>philm</dc:creator>
<guid isPermaLink="false">6816@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;br /&#62;
Is there a way I can attach a pdf to the email that is sent out to the person who completes my form?&#60;/p&#62;
&#60;p&#62;I have tried doing it as a simple &#38;lt;img src=&#34;domain.com/thefile.pdf&#34;&#38;gt; but that doesn't seem to attach it in a way that is handled as an attachment by mail programs.&#60;/p&#62;
&#60;p&#62;Any help greatly appreciated.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
