Form To Email  

Support Topics: Form To Email: How to: Setup EasyScript form to email

What you would use this for: The EasyScript Form to Email is an easy way for you to set up a HTML web based form through which your visitors can write and send you an email message from their web browser. It requires no programming on your part, but you should be familiar with HTML forms and their element.

What You Need:
An FTP client (Transmit - external link)
A text editor (TextWrangler - external link)

1. Click your cursor in the text box below and press command (apple) and the "A" key at the same time to select all. Then press command and the "C" key at the same time to copy the contents of the box.

2. Open the TextWrangler application and create a new document by going to the "File" menu and selecting New > Text Document. Click your cursor in the new document and press command and the "V" key at the same time to paste the contents of the text box above into the document.

3. In TextWrangler, press command and the "S" key at the same time to save the document. Save this document in the same folder that houses your website. You'll want to call this page something like "Contact.html". Don't close the file. Just save it.

4. In the open TextWrangler document verify that the FORM ACTION tag is = to:

http://easyscript.machighway.com/formmailer.easy
(the FORM ACTION tag should be set this way by default)

Important: If your form page is accessed via a secure server (e.g. via secure.machighway.com, secure2.machighway.com, secure3.machighway.com etc.), then your form ACTION TAG must access the form mailer via the following secure server:

https://secure4.itsamac.com/easyscript.itsamac.com/formmailer.easy


5. In the open TextWrangler document find and edit the mailto tag to reflect the address that you want this form sent to. You need to see the "Tools for reducing spam" section on our "Spam" page so you can encode your mailto address - this will help to prevent spammers from getting your email address.

6. In the open TextWrangler document find and edit the returnurltag. This should be the full path to the page the you want your visitors to see after they have filled out your page.

7. There are 3 other fields that will be filled in by the person filling out the form:

mailfrom
This is the text box where a visitor will enter their email address. This field is required by EasyScript.

subject
This is the text box where a visitor will enter the subject of the email. This field is required by EasyScript.

message
This is the text area where your visitors will put their message to you.

You don't need to worry about these fields aside from making sure that they are included in your form. If you pasted the example form from above, then those fields already exist.

8. In TextWrangler, press command and the "S" key at the same time. This will save the changes you've made. Now you can upload your script and verify that it's working.

9. Want to do more with your form? Any of the above can be filled in by the user, or hard-coded as hidden input fields in the form. Any other fields on the form are simply placed in the message body of the email message sent to the "mailto" address like this:

========================
fieldname:
fieldvalue
========================


This allows any number of additional fields beyond the minimum required fields listed above - they will all be automatically included in the email message along with the values submitted by the user. For more information on using forms, you can find an excellent tutorial here (external link).

Important:
Your form page must reside on one of MacHighway's servers in order to work, otherwise you will receive an error page.

Support Topics

Blogs
Calendars
E-Commerce
Email
Form to Email
Guestbooks
Hit Counters
MacHighway Banners
Mailing Lists
Message boards and Forums
PERL
PHP & MySQL
Security
Site Wide Search Engines
Spam
SSL
Traffic Reports
Uploading / Publishing
Video
WebDAV