<?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: Emailing results of the form</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Emailing results of the form</description>
<language>en</language>
<pubDate>Wed, 06 May 2026 15:31:28 +0000</pubDate>

<item>
<title>acs on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-1742</link>
<pubDate>Sat, 10 May 2008 01:00:25 +0000</pubDate>
<dc:creator>acs</dc:creator>
<guid isPermaLink="false">1742@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;How about send emails to two or more recipients (multiple selection) and CC to the form submitter?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-1695</link>
<pubDate>Thu, 08 May 2008 14:36:08 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">1695@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Not necessarily. As long as you change the XXX in &#60;code&#62;formXXX_hook_email&#60;/code&#62; with your particular form_id number, then the functionality will be applied to that form only.
&#60;/p&#62;</description>
</item>
<item>
<title>fredwin on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-1685</link>
<pubDate>Thu, 08 May 2008 09:06:39 +0000</pubDate>
<dc:creator>fredwin</dc:creator>
<guid isPermaLink="false">1685@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;As this code changes the includes/helper-functions.php &#38;#38; hooks/custom_hooks.php  files, does this mean it would be best to set this up as a seperate folder for the form - if you have multiple forms in use and only this form is to have this feature?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-1455</link>
<pubDate>Wed, 23 Apr 2008 08:32:42 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">1455@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hmm.. interesting, I never thought that way. But yeah, that works.
&#60;/p&#62;</description>
</item>
<item>
<title>Robye on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-1443</link>
<pubDate>Tue, 22 Apr 2008 20:06:13 +0000</pubDate>
<dc:creator>Robye</dc:creator>
<guid isPermaLink="false">1443@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;i did it and it works, i added also a new function in the helper-functions.php / c.a line 463, after the commented Send(), to set other forms to act normally (using the default email):&#60;/p&#62;
&#60;p&#62;   //$mail-&#38;gt;Send(); //disabled&#60;/p&#62;
&#60;p&#62;   // start // if there's Not the formXhook_email , acts the 'send()'&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;if(!function_exists(&#34;form{$form_id}_hook_email&#34;)){&#60;br /&#62;
   $mail-&#38;gt;Send(); // goes&#60;br /&#62;
}&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;   // end&#60;/p&#62;
&#60;p&#62;It works ... &#60;strong&#62;should be correct ?&#60;/strong&#62; (im not a good programmer...)
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-1410</link>
<pubDate>Sat, 19 Apr 2008 07:38:45 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">1410@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Actually there is a better way. Simply comment this line:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$mail-&#38;gt;Send();&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Robye on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-1403</link>
<pubDate>Sat, 19 Apr 2008 00:24:54 +0000</pubDate>
<dc:creator>Robye</dc:creator>
<guid isPermaLink="false">1403@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I trying .. in &#60;strong&#62;helper-functions.php&#60;/strong&#62; if i comments at line 452 in this way may work ? :&#60;/p&#62;
&#60;p&#62;/*$email_address = explode(',',$form_email);&#60;br /&#62;
			foreach ($email_address as $email){&#60;br /&#62;
				$email = trim($email);&#60;br /&#62;
				$mail-&#38;gt;AddAddress($email);&#60;br /&#62;
			}*/
&#60;/p&#62;</description>
</item>
<item>
<title>Robye on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-1401</link>
<pubDate>Fri, 18 Apr 2008 20:29:24 +0000</pubDate>
<dc:creator>Robye</dc:creator>
<guid isPermaLink="false">1401@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I,ve a question, i used the above system but i want send the form just to the recipient based on the field's input result, not also to the main email of the form (the above way send 2 emails).&#60;br /&#62;
I tryied setting a false email (es. &#60;a href=&#34;mailto:info@mydomain.fals)&#34;&#62;info@mydomain.fals)&#60;/a&#62; but its not a good way, undesclosed-recipient come back to my server...&#60;br /&#62;
There's another way to de-active the main email and send just the selected on the form?&#60;br /&#62;
(sorry for my bad english..)
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-1054</link>
<pubDate>Thu, 13 Mar 2008 09:40:17 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">1054@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you dgrebb :)
&#60;/p&#62;</description>
</item>
<item>
<title>dgrebb on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-1050</link>
<pubDate>Thu, 13 Mar 2008 00:56:25 +0000</pubDate>
<dc:creator>dgrebb</dc:creator>
<guid isPermaLink="false">1050@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You are an absolute genius Yuniar. I congratulate you on excellent proficiency in PHP and your amazing product.&#60;/p&#62;
&#60;p&#62;Cheers :)
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-987</link>
<pubDate>Fri, 07 Mar 2008 10:37:12 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">987@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Okay, let say we have a form with id = 3 and the dropdown list is having id = 'element_4' (view the html source of your form to see it).&#60;/p&#62;
&#60;p&#62;Edit your &#60;strong&#62;includes/helper-functions.php&#60;/strong&#62; file. Around line 470 you'll find this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$mail-&#38;gt;Send();
$mail-&#38;gt;ClearAddresses();&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
Right below that code, insert this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(function_exists(&#38;quot;form{$form_id}_hook_email&#38;quot;)){
	$carbon_email = call_user_func(&#38;quot;form{$form_id}_hook_email&#38;quot;,$table_data);
	if(!empty($carbon_email)){
		$mail-&#38;gt;AddAddress($carbon_email);
		$mail-&#38;gt;Send();
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
Next edit your &#60;strong&#62;hooks/custom_hooks.php&#60;/strong&#62; file and insert this code below anywhere:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function formXXX_hook_email($user_input){

	//change the email addresses below
	$email_list[1] = &#38;#39;email1@example.com&#38;#39;;
	$email_list[2] = &#38;#39;email2@example.com&#38;#39;;
	$email_list[3] = &#38;#39;email3@example.com&#38;#39;; 

	$attn = $user_input[&#38;#39;element_YYY&#38;#39;];

	$target_email = $email_list[$attn];

	if(!empty($target_email)){
		return $target_email;
	}else {
		return true;
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
Adjust the value in that code to match your own form id and dropdown id.&#60;/p&#62;
&#60;p&#62;XXX -&#38;gt; form id&#60;br /&#62;
YYY -&#38;gt; dropdown id&#60;/p&#62;
&#60;p&#62;That would send email to different address based on the selection of a dropdown list.
&#60;/p&#62;</description>
</item>
<item>
<title>ncvettes on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-971</link>
<pubDate>Thu, 06 Mar 2008 22:43:21 +0000</pubDate>
<dc:creator>ncvettes</dc:creator>
<guid isPermaLink="false">971@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Either from a dropdown list or to a specific recipient based on a field's input result. Ie, Sales question goes to &#60;a href=&#34;mailto:xxx@xxxx.com&#34;&#62;xxx@xxxx.com&#60;/a&#62;, and Support question goes to &#60;a href=&#34;mailto:yyy@xxxx.com&#34;&#62;yyy@xxxx.com&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-891</link>
<pubDate>Tue, 26 Feb 2008 08:27:58 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">891@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;So people would choose the recipient from a dropdown list? Or just a simple text box?
&#60;/p&#62;</description>
</item>
<item>
<title>brad on "Emailing results of the form"</title>
<link>https://www.machform.com/forums/topic/emailing-results-of-the-form#post-888</link>
<pubDate>Tue, 26 Feb 2008 05:56:35 +0000</pubDate>
<dc:creator>brad</dc:creator>
<guid isPermaLink="false">888@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I want to create a number of stock forms that people can choose from. In each of these forms there would be a question asking who do you want to send the results to? Is this possible?&#60;/p&#62;
&#60;p&#62;Basically I want to create an open form that anyone can use and get information sent back to them without having to log into Machform.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
