IA Modules eCommerce Documentation

Have a question? Email support@iamodules.com to create a ticket in our ticket system.
 
Untitled Document

Form Mailer

You can create forms on your site using HTML and point them to your Form Mailer script. The script will email the form contents to you.

This script is a Java port of the popular FormMail script from Matt's Script Archive. The version provided with your hosting service is very similar, and most of the documentation of the original still applies.

The only major change to the functionality is that no recipient parameter can be passed to the script. The email address that is used will be pulled from your shopping cart's Admin area. This protects your email address from spammers. (It is never a good idea to put your email address anywhere on a website. Always use this script instead.)

To use this script, simply point your form to "FMail.jsp". Here is an example form for your StoreContactUs.htm page.

<form name="FMail" id="FMail" action="FMail.jsp" method="post">
<input type=hidden name="redirect" value="Home.jsp">
<table class="regulartext" border="0" cellpadding="10" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="regulartext" colspan="2">For immediate
help or feedback regarding our services,
please fill up the form below and hit
SUBMIT button only once.</td>
</tr>
<tr>
<td class="regulartext" colspan="2"><br>
<table class="regulartext" border="0" cellpadding="1" cellspacing="0" width="350">
<tbody>
<tr class="regulartext">
<td valign="top"><b>Name:</b></td>
<td valign="top"><input name="realname" class="field" id="realname" size="22" maxlength="200">
</td>
</tr>

<tr class="regulartext">
<td valign="top">Company:</td>
<td valign="top"><input name="company" class="field" id="company" size="22" maxlength="200">
</td>
</tr>
<tr class="textcontents">
<td valign="top">Address:</td>

<td valign="top"><input name="address" class="field" id="address" size="22" maxlength="200">
</td>
</tr>
<tr class="textcontents">
<td valign="top"><b>Email:</b></td>
<td valign="top"><input name="email" class="field" id="email" size="22" maxlength="200">
</td>
</tr>

<tr class="textcontents">
<td valign="top">Website:</td>
<td valign="top"><input name="website" class="field" id="website" size="22" maxlength="200">
</td>
</tr>
<tr class="regulartext">
<td valign="top">Phone:</td>

<td valign="top"><input name="phone" class="field" id="phone" size="22" maxlength="200">

</td>
</tr>
<tr></tr>
</tbody>
</table>
<br>
<span class="regulartext">Comments / Inquiries / Questions:</span><br>

<textarea name="comments" cols="34" rows="6" class="comments" id="comments" maxlength="200"></textarea>
<br>
<input class="buttons" value="Submit" name="SUBMIT" type="submit">
<input class="buttons" value="Reset" name="RESET" type="reset">

</td>
</tr>
</tbody>
</table>
</form>

© 2013 IA Modules, LLC
All rights reserved.