Knowledgebase:
Set Up Instructions for the AISO.Net Form Mail Script
Posted by Support, Last modified by Support on 30 March 2014 09:51 PM

The Fields

This is a list of fields that the MAILTO script will automatically use. All other fields will be decoded and placed into the e-mail message.

NOTE: You can also use https:// for the form action to have the form secure, but the e-mail being sent to the e-mail server will not be secure unless it is sent to an AISO e-mail server. Using this form with SSL by using https:// instead of http:// does have an insecure method, so use it with caution.

sendto
The email- address of the recipient of the e-mail message. This field is mandatory and must be an e-mail address that resides on your domain name hosted with us and must be the same domain name as the server field. Example: yourname@your-domain-name.com

sendtoenc
The AISO encrypted e-mail address of the recipient of the e-mail message. This field replaces the sendto field above by encrypting the email address the forms data will be sent to and is mandatory if the sendto field above is blank. This encryption is only meant to prevent the harvesting of the e-mail address off the form from bots and not meant to be secure in any way. The encrypted e-mail address must be an e-mail address that resides on your domain name hosted with us and must be the same domain name as the server field. Please contact us for encrpyting your e-mail sendto/sendtoenc field.

server
This field is mandatory and contains the name of the SMTP e-mail server to send the mail to. This must be mail.your-domain-name.com.

subject
The subject of the e-mail message. You can also use MailSubject. This field is optional.

resulturl
The full URL for the thank you page to display. You can also use SuccessDocument. This field is optional.

resulttxt
Some text that is displayed in the Thank you message. This field is optional.

NOTE: If neither resulturl nor resulttxt are displayed, you will see a default "Thank you" message.

email
This field is mandatory and is the e-mail address of the person filling in the form. The contents of this field will also be placed into the From: clause of the e-mail message. When you receive this message, you will be able to hit "Reply" and reply to the person who filled the form.

rfield
A comma seperated list of form field names that will be required. Example: value="FirstName,LastName,PhoneNumber". You can also use rfields. This field is optional.

CAPTCHA USE:
You can now use CAPTCHA on your form to prevent automated form submission from bots on the internet. To use it just put the following HTML into your form.

<SCRIPT language="JavaScript" type="text/javascript">
function refreshcaptchaimage()
{
var imagefile = 'http://www.controlmywebsite.com/cgi-bin/mailto/captcha.php';
tmp = new Date();
tmp = "?"+tmp.getTime();
document.images["imgcaptcha"].src = imagefile+tmp;
}
</SCRIPT>
Enter Image Text: <input type="text" id="txtcaptcha" name="strCAPTCHA">&nbsp;&nbsp;&nbsp;<img name="imgcaptcha" id="imgcaptcha" src="http://www.controlmywebsite.com/cgi-bin/mailto/captcha.php">&nbsp;&nbsp;<a href="javascript:refreshcaptchaimage();">Refresh Image</a><input type="hidden" name="ric" value="1">


Example

The Hidden Fields below need to go into your form:

<FORM ACTION="http://www.controlmywebsite.com/cgi-bin/mailto/mailto.php" METHOD="post">
<input type="hidden" name="sendto" value="your-email-address@your-domain-name.com">
<input type="hidden" name="server" value="mail.your-domain-name.com">
<input type="hidden" name="subject" value="Contact Us Form or Comments Form">
<input type="hidden" name="resulturl" value="http://www.your-domain-name.com/thanks.html">
<input type="hidden" name="rfield" value="uname,title,company">

<br>
<b>Your details:</b>
Name: <INPUT NAME="uname" SIZE=30>
Position: <INPUT NAME="title" SIZE=30>
Company Name: <INPUT NAME="company" SIZE=40>
E-Mail: <INPUT NAME="email" SIZE=30>

Press <INPUT TYPE="submit" VALUE="Submit"> and your request will be processed or
<INPUT TYPE="reset" VALUE="Clear"> to start again.
We aim to respond within 24 hours.

When the user presses the SUBMIT button, the information is sent to the WWW server which calls /cgi-bin/mailto/mailto.php. The MAILTO script will read the details sent and format a message which looks something like:

From: Senders e-mail address senders-email-address@senders-domain-name.com
To: your-email-address@your-domain-name.com
Subject: Contact Us Form or Comments Form
Date: The Date the form was submitted

(2446 vote(s))
Helpful
Not helpful