<?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 HTML Email back to submitter</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Sending HTML Email back to submitter</description>
<language>en</language>
<pubDate>Wed, 06 May 2026 02:13:00 +0000</pubDate>

<item>
<title>xtfer on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter/page/2#post-1212</link>
<pubDate>Thu, 27 Mar 2008 11:39:37 +0000</pubDate>
<dc:creator>xtfer</dc:creator>
<guid isPermaLink="false">1212@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have this working nicely now, thanks for the tips.
&#60;/p&#62;</description>
</item>
<item>
<title>forestis on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter/page/2#post-976</link>
<pubDate>Fri, 07 Mar 2008 02:59:37 +0000</pubDate>
<dc:creator>forestis</dc:creator>
<guid isPermaLink="false">976@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;ok I found this post that will probably help me!&#60;br /&#62;
&#60;a href=&#34;http://www.appnitro.com/forums/topic/reply-to-address?replies=8#post-381&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/reply-to-address?replies=8#post-381&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>forestis on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter/page/2#post-972</link>
<pubDate>Fri, 07 Mar 2008 00:44:36 +0000</pubDate>
<dc:creator>forestis</dc:creator>
<guid isPermaLink="false">972@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have two questions:&#60;/p&#62;
&#60;p&#62;I've followed the steps above to have an html email sent back and it is working fien.&#60;br /&#62;
Q1: I need to add a different html email to be sent for another form, I added the same code under in custom_hook.php but it doesn't seem to work at the moment.&#60;/p&#62;
&#60;p&#62;Q2: I also need to have a distinct mail from for the first form and the second form, how could I accomplish this?
&#60;/p&#62;</description>
</item>
<item>
<title>sonicalpha on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter/page/2#post-886</link>
<pubDate>Mon, 25 Feb 2008 20:25:00 +0000</pubDate>
<dc:creator>sonicalpha</dc:creator>
<guid isPermaLink="false">886@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you very much :)
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter/page/2#post-877</link>
<pubDate>Sat, 23 Feb 2008 07:25:44 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">877@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Sure, simply edit your &#60;strong&#62;config.php&#60;/strong&#62; file.&#60;br /&#62;
Search for NOTIFICATION_MAIL_FROM_NAME setting.&#60;/p&#62;
&#60;p&#62;For example:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;define(&#38;#39;NOTIFICATION_MAIL_FROM_NAME&#38;#39;,&#38;#39;SonicAlpha&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
That will set your sender name to &#34;SonicAlpha&#34; :-)
&#60;/p&#62;</description>
</item>
<item>
<title>sonicalpha on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter/page/2#post-876</link>
<pubDate>Fri, 22 Feb 2008 21:46:24 +0000</pubDate>
<dc:creator>sonicalpha</dc:creator>
<guid isPermaLink="false">876@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Is there anyway to change the sender name, on the email that you send out to the person who completed the form?&#60;/p&#62;
&#60;p&#62;At the moment, my emails are coming from &#34;Machform.&#34;&#60;/p&#62;
&#60;p&#62;Thank you :)
&#60;/p&#62;</description>
</item>
<item>
<title>forestis on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter/page/2#post-864</link>
<pubDate>Mon, 18 Feb 2008 20:55:42 +0000</pubDate>
<dc:creator>forestis</dc:creator>
<guid isPermaLink="false">864@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you so much!
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter/page/2#post-853</link>
<pubDate>Sat, 16 Feb 2008 07:55:01 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">853@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Oops..sorry, small error with the code. It was using the same $result variable, hence the conflict occured.&#60;/p&#62;
&#60;p&#62;I've just logged in to your FTP and updated that file. Please check it.
&#60;/p&#62;</description>
</item>
<item>
<title>forestis on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter/page/2#post-851</link>
<pubDate>Fri, 15 Feb 2008 22:44:06 +0000</pubDate>
<dc:creator>forestis</dc:creator>
<guid isPermaLink="false">851@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ooops sorry, I just learned what a backtick is.. :)&#60;/p&#62;
&#60;p&#62;But now I get this error:&#60;/p&#62;
&#60;p&#62;Warning: Cannot use a scalar value as an array in /home/formppp/public_html/machform/hooks/custom_hooks.php on line 61&#60;/p&#62;
&#60;p&#62;Warning: Cannot use a scalar value as an array in /home/formppp/public_html/machform/hooks/custom_hooks.php on line 62&#60;/p&#62;
&#60;p&#62;Warning: Cannot use a scalar value as an array in /home/formppp/public_html/machform/hooks/custom_hooks.php on line 63&#60;/p&#62;
&#60;p&#62;Warning: Cannot modify header information - headers already sent by (output started at /home/formppp/public_html/machform/hooks/custom_hooks.php:61) in /home/formppp/public_html/machform/embed.php on line 33&#60;/p&#62;
&#60;p&#62;-----&#60;/p&#62;
&#60;p&#62;my line 61,62,63 is:&#60;br /&#62;
	$result['body'] 		= $email_content;&#60;br /&#62;
	$result['target_email'] = $user_input['element_11'];&#60;br /&#62;
	$result['subject'] 		= $email_subject;&#60;/p&#62;
&#60;p&#62;-----
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter#post-837</link>
<pubDate>Thu, 14 Feb 2008 16:44:19 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">837@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I think you forgot to read my PS above ;-)&#60;/p&#62;
&#60;p&#62;You need to replace those '~' character into backticks, since backticks can't display well in this forum.
&#60;/p&#62;</description>
</item>
<item>
<title>forestis on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter#post-836</link>
<pubDate>Thu, 14 Feb 2008 16:41:55 +0000</pubDate>
<dc:creator>forestis</dc:creator>
<guid isPermaLink="false">836@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you for answering so quick. I tried the code but I get the following error:&#60;/p&#62;
&#60;p&#62;select ~option~ from ap_element_options where form_id='29' and element_id='17' and option_id='3' and live=1 Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option~ from ap_element_options where form_id='29' and element_id='17' a' at line 2
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter#post-832</link>
<pubDate>Thu, 14 Feb 2008 12:41:44 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">832@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;For dropdowns, we need to get the value from other tables first.&#60;/p&#62;
&#60;p&#62;Your code should be something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element_id = 17;

$query = &#38;quot;select
		~option~
	from
		ap_element_options
	where
		form_id=&#38;#39;&#38;quot;.(int) $_REQUEST[&#38;#39;id&#38;#39;].&#38;quot;&#38;#39; and
		element_id=&#38;#39;{$element_id}&#38;#39; and
		option_id=&#38;#39;&#38;quot;.(int) $user_input[&#38;#39;element_&#38;#39;.$element_id].&#38;quot;&#38;#39; and
		live=1&#38;quot;;

$q_result = do_query($query);
$row 	 = do_fetch_result($q_result);

$element_17_value = $row[&#38;#39;option&#38;#39;];

$email_content =&#38;lt;&#38;lt;&#38;lt;EOT
Bonjour {$element_17_value}
EOT;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
A bit more complex, so if you have any question, let me know.&#60;/p&#62;
&#60;p&#62;PS. Replace ~ above with backticks, it doesn't seem to be displayed properly here.&#60;/p&#62;
&#60;p&#62;(Edit: the code above has been fixed)
&#60;/p&#62;</description>
</item>
<item>
<title>forestis on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter#post-828</link>
<pubDate>Thu, 14 Feb 2008 00:56:36 +0000</pubDate>
<dc:creator>forestis</dc:creator>
<guid isPermaLink="false">828@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I followed the instruction and it all worked.&#60;br /&#62;
But I don;t know how to call the value of a roll down menu option.&#60;br /&#62;
I am getting the option number 1, 2 or 3 instead of the option text value : Option 1, Option 2..&#60;/p&#62;
&#60;p&#62;$email_content =&#38;lt;&#38;lt;&#38;lt;EOT&#60;br /&#62;
Bonjour {$user_input['element_17']}&#60;br /&#62;
EOT;&#60;/p&#62;
&#60;p&#62;Can you help me?
&#60;/p&#62;</description>
</item>
<item>
<title>xlawdog on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter#post-667</link>
<pubDate>Mon, 28 Jan 2008 22:37:10 +0000</pubDate>
<dc:creator>xlawdog</dc:creator>
<guid isPermaLink="false">667@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Perfect! Thank you.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter#post-660</link>
<pubDate>Sun, 27 Jan 2008 12:37:17 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">660@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Try this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$user_input[&#38;#39;element_3&#38;#39;] = rtrim($user_input[&#38;#39;element_3&#38;#39;],&#38;#39;.&#38;#39;);

$email_content =&#38;lt;&#38;lt;&#38;lt;EOT
recommending a grant of \${$user_input[&#38;#39;element_3&#38;#39;]} for our project
EOT;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
That should remove the decimal point.
&#60;/p&#62;</description>
</item>
<item>
<title>xlawdog on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter#post-657</link>
<pubDate>Sat, 26 Jan 2008 22:03:29 +0000</pubDate>
<dc:creator>xlawdog</dc:creator>
<guid isPermaLink="false">657@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;That did work to display the user input amount with the dollar symbol - thanks!&#60;/p&#62;
&#60;p&#62;It is still displaying the decimal point, which I'd like to eliminate. My code in the custom_hooks.php file is exactly like yours above (except it's element_4) - but I had changed the form display to remove the &#34;cents&#34; field, per the instructions in another post. The decimal point does not display in the visible form, but it's included in the email response using the above code. So I get &#34;recommending a grant of $2000. for our next project&#34; rather than &#34;recommending a grant of $2000 for our next project,&#34; which would be my preference.&#60;/p&#62;
&#60;p&#62;I tried using element_4_1 instead of element_4, but that didn't work when I tested it.&#60;/p&#62;
&#60;p&#62;I know it's a small thing, and it may not matter, but is there a way to eliminate the decimal point?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter#post-655</link>
<pubDate>Sat, 26 Jan 2008 12:02:16 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">655@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;To escape the $ symbol, you will need to add backslash, like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$email_content =&#38;lt;&#38;lt;&#38;lt;EOT
recommending a grant of \${$user_input[&#38;#39;element_3&#38;#39;]} for our project
EOT;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
If it doesn't work for you, can you paste me your code?
&#60;/p&#62;</description>
</item>
<item>
<title>xlawdog on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter#post-652</link>
<pubDate>Sat, 26 Jan 2008 10:54:15 +0000</pubDate>
<dc:creator>xlawdog</dc:creator>
<guid isPermaLink="false">652@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The curly brace method works for all variables in my message, except for one that is pulling in the content of a currency field. And it is also complicated by the fact that it is a currency field from which I've eliminated the &#34;cents&#34; element (per another forum topic).&#60;/p&#62;
&#60;p&#62;My message has to include the text &#34;... recommending a grant of $[user input amount] for our project ...&#34; -- for example, &#34;... recommending a grant of $2000 for our project ...&#34;.&#60;/p&#62;
&#60;p&#62;If I use the curly brace method, the user input amount doesn't print in the email message -- only the dollar symbol. If I use my previous method of defining the variable first, for example, as $amount, and then including $$amount in the message body, it prints, but it includes the decimal after the dollar amount, which looks odd.&#60;/p&#62;
&#60;p&#62;How can I configure this so that the message will include the amount, with the dollar symbol, but without the decimal?&#60;/p&#62;
&#60;p&#62;Thanks in advance.
&#60;/p&#62;</description>
</item>
<item>
<title>xlawdog on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter#post-651</link>
<pubDate>Fri, 25 Jan 2008 21:10:18 +0000</pubDate>
<dc:creator>xlawdog</dc:creator>
<guid isPermaLink="false">651@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks. I like that better. I'll give it a try.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Sending HTML Email back to submitter"</title>
<link>https://www.machform.com/forums/topic/sending-html-email-back-to-submitter#post-650</link>
<pubDate>Fri, 25 Jan 2008 12:52:24 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">650@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Great, that worked.&#60;/p&#62;
&#60;p&#62;You could do this too:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$email_content =&#38;lt;&#38;lt;&#38;lt;EOT
Dear {$user_input[&#38;#39;element_5&#38;#39;]}&#38;lt;br&#38;gt;&#38;lt;br&#38;gt; ...
EOT;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Just put a curly braces between the variable.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
