CUSTOM RESULTS EMAIL
Description:
By default, the “form results” email message, which gives you the form poster’s information, sent to the “send to” email, is in a plain text format and it is not customizable. This email simply shows all fields on the form and what values were entered into those fields. Therefore, it is not customizable.
However, the “custom results” message feature enables you to send the “results email” message formatted the way you want. Therefore, the posted “form results” can be formatted in the order and structure you would like for them to appear. In addition, you can send this message in either plain text or HTML format.
The first setting to configure is to define whether or not you want to send the custom result messages or if you want to use the default results email feature.
To turn the custom results email message to ON, configure $SEND_custom_result as shown below:
$SEND_custom_result = "1"; ## ON
To turn the custom results email message to OFF, configure $SEND_custom_result as shown below:
$SEND_custom_result = "2"; ## OFF
Next, you must define whether the custom form results email message will be sent in either plain text or HTML format. This is done through a hidden HTML form field name="custom_message_format".
To send the message in an HTML format, add the below hidden field with the same value to your HTML form:
<input type="hidden" name="custom_message_format" value="html">
To send the message in an Plain Text format, add the below hidden field with the same value to your HTML form:
<input type="hidden" name="custom_message_format" value="plain">
Following that, you need to specify which file to send. There is a separate configuration for sending both HTML and Plain Text message files. This configuration is very similar to configuring the auto-response message.
$CUSTOM_mes_plain{""}
Simply enter all the possible Plain Text files you will want to use as the message content for the custom form result Emails.
Example Config:
$CUSTOM_mes_plain{"1"} = "custom_plain.mes";
$CUSTOM_mes_plain{"2"} = "second_custom_plain.mes";
$CUSTOM_mes_plain{"3"} = "";
For example, If you want to use the custom_plain.mes as your Plain Text custom form result email message content, then format the "plain_custom_mesfile" field on the form as follows:
<input type="hidden" name="plain_custom_mesfile" value="1">
-OR- if you want to use the second_custom_plain.mes as your Plain Text custom form result email message content, then format the "plain_custom_mesfile" field on the form as follows:
<input type="hidden" name="plain_custom_mesfile" value="1">
Please Note: You can have as many $CUSTOM_mes_plain{""} entries as you would like in bizmail.cgi
IF YOU LEAVE THIS FIELD OUT OF THE FORM IT WILL DEFAULT TO custom_plain.mes
$CUSTOM_mes_html{""}
Simply enter all the possible HTML files you will want to use as the message content for the custom form result Emails.
Example Config:
$CUSTOM_mes_html{"1"} = "custom_html.mes";
$CUSTOM_mes_html{"2"} = "second_custom_html.mes";
$CUSTOM_mes_html{"3"} = "etc_custom_html.mes";
For example, if you want to use custom_html.mes as your HTML custom form result email message content, then format the "html_custom_mesfile" field on the form as follows:
<input name="html_custom_mesfile" type="hidden" value="1">
-OR- If you want to use second_custom_html.mes as your HTML custom form result email message content, then format the "html_custom_mesfile" field on the form as follows:
<input name="html_custom_mesfile" type="hidden" value="2">
Please Note: You can have as many $CUSTOM_mes_html{""} entries as you would like in bizmail.cgi
IF YOU LEAVE THIS FIELD OUT OF THE FORM IT WILL DEFAULT TO custom_html.mes