Using Imaginet Formailer (HTML)

From Imaginet FAQ
Jump to navigation Jump to search

This tutorial explains how to make use of the Imaginet Form Mailer. Please note that you will need to build your own contact form as this is not something that we can assist you with.

The form mailer script takes the basic form below, pay special attention to the first 4 lines:

<FORM NAME="test" METHOD="post" ACTION="http://www.imaginet.co.za/mailer.php">
<INPUT TYPE="hidden" NAME="MailTo" VALUE="yourname@yourdomain.co.za">
<INPUT TYPE="hidden" NAME="Subject" VALUE="The subject of the email message">
<INPUT TYPE="hidden" NAME="ReturnURL" VALUE="http://www.yourdomain.co.za/thankyoupage.htm">
<INPUT TYPE='checkbox' NAME='accept' STYLE='display: none;'><LABEL FOR="accept" STYLE='display: none;'> I Accept</LABEL>
...
Other form fields.
...
<INPUT TYPE="submit" NAME="SUBMIT" VALUE="submit">
</FORM>

I repeat, the above lines must be the first four lines of the form.

You must edit the first four lines to suit your website, and your email address. Here is a line by line description of what you should and shouldn't change.

Line #1:

<FORM NAME="FormName" METHOD="post" ACTION="http://www.imaginet.co.za/mailer.php">

You can replace FormName, but there's really no need to. It's best not to change anything on this line.

Line #2:

<INPUT TYPE="hidden" NAME="MailTo" VALUE="yourname@yourdomain.co.za">

Replace "yourname@yourdomain.co.za" with the email address that you want the results of the form mailed to. Do not change anything else on this line. Only one (1) 'MailTo' email address is allowed per form.

Line #3:

<INPUT TYPE="hidden" NAME="Subject" VALUE="The subject of the email message">

Replace "The subject of the email message" with the subject of your email message. Be sure that the subject line is enclosed in single-quotes ( ' ) as in the example.

Line #4:

<INPUT TYPE="hidden" NAME="ReturnURL" VALUE="http://www.yourdomain.co.za/thankyoupage.htm">

Replace "http://www.yourdomain.co.za/thankyoupage.html" with the FULL URL (web address) of the web page you want to refer the person to after the form has been submitted. For example, a web page that thanks the visitor for filling out the form.

Line #5:

<INPUT TYPE='checkbox' NAME='accept' STYLE='display: none;'><LABEL FOR="accept" STYLE='display: none;'> I Accept</LABEL>

This is a hidden field to help protect against spam

Following these first five lines, you can add any form fields of any type, such as...

<INPUT TYPE="text" NAME="SomeFieldName">
<INPUT TYPE="text" NAME="SomeOtherFieldName">


The end of your form should have a submit button and close the form:

<INPUT TYPE="submit" NAME="SUBMIT" VALUE="submit">
</FORM>


Once you have completed your form, be sure to test it thoroughly to ensure that it is working properly. Any errors will be displayed on the page when you submit the form.


PLEASE NOTE: Use of the Imaginet Form Mailer is at your own risk. Imaginet provides the form mailer as is and does not guarantee its usefulness, functionality, or availability. Imaginet will not be held liable for any costs or losses of any kind that result from the free Imaginet Form Mailer's use.

Imaginet provides this as a free service, and therefore does not provide support for the use of this function. If you have problems with building the form, it is highly suggested that you enlist the aid of a qualified web designer.