Form To E-mail

Formmail Overview

FormMail is a script, which takes the results of any form and sends them to a specified user. You don't need any programming knowledge or multiple scripts for multiple forms. If you can create a basic form in HTML, formmail will send the gathered information to your e-mail account.

1. Create a form with any decent web page creation software.

2. The form action line should be changed to: 

<form method="POST" action="/mail/formmail.asp?recipient=username@your_domain.com
&
sender=webmaster@your_domain.com&subject=Order">

    NOTE: The formmail.asp script will do all the programming work for you. There is no spacing among the above three lines, i.e. It is only one line in HTML. 

There is three form parameters that you must have in your form for Formmail to work correctly. This is the recipient parameter.


Required Form parameter:

Parameter: recipient
This form parameter allows you to specify to whom you wish for your form results to be mailed. Most likely, you will want to configure this option as a hidden form field with a value equal to that of your e-mail address.
recipient=username@your_domain.com

 

Field: sender
The subject parameter will allow you to specify the sender that you wish to appear in the e-mail that is sent to you after this form has been filled out. 

sender=webmaster@your_domain.com

 

Field: subject
The subject parameter will allow you to specify the subject that you wish to appear in the e-mail that is sent to you after this form has been filled out. 
subject=Order

Optional Form Fields:

Field: redirect
If you wish to redirect the user to a different URL, rather than having them see the default response to the fill-out form, you can use this parameter to send them to a pre-made HTML page.
redirect=../thankyou.htm

The form action line should be changed to:

<form method="POST" action="/mail/formmail.asp?recipient=username@your_domain.com
&
sender=webmaster@your_domain.com&subject=Order

&redirect=../thankyou.htm">

line_bottom.jpg (2996 bytes)

Copyright (C) 1999-2001. 188 Web Services Limited. All Rights Reserved.
Last modified: 09-07-01