• Support: Go To End of This Page To Email Pages to Yourself

  • Form Emailer

    Information of sending form entries by email.

    1. How can I setup a form emailer?
    2. Advanced Form Options


  • How can I setup a form emailer?:

    FRONTPAGE USERS: Please note that Frontpage also has built in Form Mailing capability that can also be used.
    To process forms the start of your form which will always have
    FORM ACTION=...... should be replaced with

    <FORM method="POST" action="_processform.cfm">
    <INPUT type="hidden" name="From" value="visitor@domain.com">
    <INPUT type="hidden" name="Subject" value="The Subject You Want In Your Emails">
    <INPUT type="hidden" name="SuccessLocation" value="http://www.domain.com/success.html"><INPUT type="hidden" name="To" value="myself@domain.com">

    You would off course change the fields, to your own email addresses and the subject you desire.

    Next as a text file create a file called _processform.cfm and enter these two lines exactly as shown below.

    <CF_MailForm TO="#TO#" From="#FROM#" Subject="#Subject#">
    <CFLocation URL="#SuccessLocation#">

    and place this file in the directory where your form is located.

    You should now have a working form.
    Avoid using Input fields with spaces such as "Date Today" rather use "DateToday" without spaces. Spaces will generate error messages. (Updated: 07/23/99)


  • Advanced Form Options:

    To perform some checks on your forms prior to mailing them out (see above faq for instructions on how to setup a formemailer), you can do the following:

    Required Fields:
    If some field in your form is required. For ex. CustomerName. You would have a entry on your form similar to
    <INPUT TYPE="text" Name="CustomerName" Size=50>

    You can add an entry as follows to make sure that CustomerName is always submitted as follows:

    <INPUT TYPE="hidden" Name="CustomerName_required" Value="Customer Name is Required">

    The field name customername with _required ensures that the field is submitted. Please note this is a new -hidden- field.

    Other Validation Rule Suffixes
    ==============================

    _date : Date in most common date formats like MM/DD/YY and MM/DD/YYYY

    _eurodate : Same as _date but with day before year (European Format)

    _float : Numeric Data, decimal point allowed

    _integer : Number Data, decimal point allowed

    _range : Range of values, the minimu and maximum values (or just one of them) must be specificed in the VALUE attribute as MIN= and MAX=, for exampel "MIN=5 and MAX=25"

    _required : Field is required and may not be left blank.

    _time : Time in most common time formats.

    There is no limit to the number of validation rules you can embed in a form provided each validation rule is embedded as a seperate hidden field.



    (Updated: 05/24/99)



    Send the Above FAQ(s) To me @: