<?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: Dropdown Sending Email (use in two forms)</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Dropdown Sending Email (use in two forms)</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 03:55:04 +0000</pubDate>

<item>
<title>johntorre on "Dropdown Sending Email (use in two forms)"</title>
<link>https://www.machform.com/forums/topic/dropdown-sending-email#post-6392</link>
<pubDate>Sat, 27 Jun 2009 09:16:20 +0000</pubDate>
<dc:creator>johntorre</dc:creator>
<guid isPermaLink="false">6392@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;already solved... i figured it out that if you want to work this you have to add email address in email notification field... just dont leave it blank.. &#60;/p&#62;
&#60;p&#62;More power MachFORM!!!
&#60;/p&#62;</description>
</item>
<item>
<title>johntorre on "Dropdown Sending Email (use in two forms)"</title>
<link>https://www.machform.com/forums/topic/dropdown-sending-email#post-6391</link>
<pubDate>Sat, 27 Jun 2009 01:33:52 +0000</pubDate>
<dc:creator>johntorre</dc:creator>
<guid isPermaLink="false">6391@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Redityo and Yuniar, i just want to ask if how to add this or use this sending email from dropdown to other form.&#60;/p&#62;
&#60;p&#62;Like with your example form18 and element_3 what if im going to use this to&#60;br /&#62;
FORM 19 element_12?&#60;/p&#62;
&#60;p&#62;Thanks in advance! &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function form18_hook_email($params){

	//change the email addresses below
	$email_list[1] = &#38;#39;sales@example.com&#38;#39;;
	$email_list[2] = &#38;#39;hrd@example.com&#38;#39;;
	$email_list[3] = &#38;#39;support@example.com&#38;#39;;
	$email_list[4] = &#38;#39;accounts@example.com&#38;#39;;
	$email_list[5] = &#38;#39;legal@example.org&#38;#39;; 

	$res = do_query(&#38;quot;select element_3 from ap_form_{$params[&#38;#39;form_id&#38;#39;]}
where id=&#38;#39;{$params[&#38;#39;entry_id&#38;#39;]}&#38;#39;&#38;quot;);
	$row = do_fetch_result($res);

	$attn = $row[&#38;#39;element_3&#38;#39;];

	$target_email = $email_list[$attn];

	if(!empty($target_email)){
		return $target_email;
	}else {
		return true;
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
