Login
Eshop Systems

Email form construction for web site

Last edited: 2009-10-09

You can contruct an email form using the following variables, for your customers to send you email via your web store. To place a form in any content or category pages, click the "Edit HTML Source" icon of HTML Editor and paste the HTML code of your form to the text area provided. Don't forget to 'Update' the HTML source and then 'Save' the content.

The email form should send to "SendMail+PXdXYWgxR1p1VjJj", using POST method only. You will need to include a javascript script and a captcha placeholder to automatic add security captcha to your email form.

Variable Required Explain/Example
captcha Yes Security code to prevent spamming. A placeholder is required
crypt Yes Encrypted data for email. A placeholder is required.
from_name Optional Customer Name
from_email Optional sender@yahoo.com
to_name Optional Recipient Name
to_email Yes recipient@hotmail.com
subject Optional Subject of email
field_n Yes title of message, n = 1-29
content_n Yes message of email, n = 1-29
.
Example HTML Code
Contact Us <script language="JavaScript" src="https://www.eshop-systems.net/captcha-js.php"></script>
<form name="mailform" action="SendMail+PXdXYWgxR1p1VjJj" method="post">
<table>
<tr><td>Your Name:</td><td><input name="from_name" size="30" type="text" /></td></tr>
<tr><td>Your Email:</td><td><input name="from_email" size="30" type="email" required /></td></tr>
<tr><td>Security Code:</td><td><input id="captcha" class="captcha" type="text" />
<input name="captcha" size="16" type="text" required /></td></tr>
<tr><td>Subject:</td><td><input name="subject" size="30" type="text" /></td></tr>
<tr><td colspan="2">Message:<br /><textarea name="content_1" rows="6" cols="40" required ></textarea></td></tr>
</table>
<input name="field_1" value="Message" type="hidden" />
<input name="crypt" id="crypt" type="hidden" />
<input name="to_email" value="myemail@mydomain.com" type="hidden" />
<p style="text-align: center;"><input name="submit" value="Submit" type="submit" /></p>
</form>
Feedback/ Questionaire <script language="JavaScript" src="https://www.eshop-systems.net/captcha-js.php"></script>
<Form method="POST" action="SendMail+PXdXYWgxR1p1VjJj">
<p>Customer Name: <input type="text" name="from_name" value="" / ></p>
<p>Customer Email: <input type="email" name="from_email" value="" required / ></p>
<p>Spam Protection: <input type="text" id="captcha" class="captcha" />
<input type="text" name="captcha" value="" size="10" />
</p>
<p>How you rate our service?
<input type="hidden" name="field_1" value="Service Quality " / >
<input type="radio" name="content_1" value="1" / >Poor
<input type="radio" name="content_1" value="2" / >Satisfactory
<input type="radio" name="content_1" value="3" / >Good</p>
<p>How you find us?
<input type="hidden" name="field_2" value="How to find us? " / >
<select name="content_2">
<option value="not selected" selected>Please choose one:</option>
<option value="search engine">Search Engine</option>
<option value="promotional material">Brochure/Flyer/Leaflet</option>
<option value="recommended">Recommended by friend</option>
</select></p>
<p>Other Comment?<br />
<input type="hidden" name="field_3" value="Other comment" / >
<textarea name="content_3" rows="5" cols="40"></textarea><p>
<p><input type="submit" name="submit" value="Submit Now " / ></p>
<input type="hidden" name="subject" value="Customer Feedback / ">
<input type="hidden" name="crypt" id="crypt" / >
<input type="hidden" name="to_email" value="myemail@mydomain.com" / >
</Form>

email form, form construction, php mail, html mail

Related articles:

  1. Quick-start guide
  2. Email form construction for web site
  3. Point a domain name to your store
  4. Create a customised template
  5. Modify default content of sales transaction
  6. Add custom checkout form fields
  7. Setting up Cookie Control on your web store
  8. Supported Payment Gateways