Complete internet solutions for e-business.

HOME

PORTFOLIO

WEB HOSTING

WEB DESIGN

E-COMMERCE

INTERNET GUIDE

SUPPORT

CONTACT US


How To

 

Tutorials

Support Desk

Support Desk

 
 
Send Us  Form Mail
 
 

This tutorial will show you how to configure CGI eMail

CGI eMail is a simple, easy-to-use script that takes the results of any form and sends them to you via email. Because it is already installed, minimal configuration is required to successfully use the script.

The following steps provide quick summarized instructions for CGI EMail. Be sure to read the CGI user guide for detailed instructions on using CGI EMail.

To configure CGI EMail:

Cgiemail is already installed as part of cpanel; and the template just goes
somewhere in your own webspace.

Create a template, put it in anywhere in or under your public_html directory.
Say you put it in ~/public_html/mailforms/template1.txt.

Then in your form, you call it with this form action

/cgi-sys/cgiemail/mailforms/template1.txt

Note, you don't have your own cgi-sys directory -- it's a shared one.

While you're testing the setup, with instead of cgiemail, use cgiecho -- instead
of sending off a mail, it'll show you the completed template on screen.
You will need to make sure the form action is correct.


More reading:
http://web.mit.edu/wwwdev/cgiemail/user.html#action

Sample Template file:

From: "[username]" <[realname]>
To: [required-to]
Reply-to: "[username]" <[realname]>
Subject: [subject]

How are you gentlemen?
All your base are belong to us.
You are on the way to destruction.
You have no chance to survive, make your time.


Sample html input form:

<form method=POST action="/cgi-bin/cgiemail/mail.txt">
<INPUT TYPE=HIDDEN VALUE="http://put-your-domain-here.com/thanks.html" name="success">
<INPUT TYPE=HIDDEN VALUE="sales@put-your-domain-here.com" name="required-to">
<INPUT TYPE=HIDDEN VALUE="CGIEMAIL EXAMPLE SUBJECT" name="subject">

Company Name<br>
<input type=text size=60 name="company" value=""><p>

Email address<br>
<input type=text size=60 name="username" value=""><p>

Phone<br>
<input type=text size=60 name="phone" value=""><p>

<input type=submit value="SUBMIT"> <input type=reset value="START OVER!"><p>
</form>





This feature is part of CPanel, there are a ton of other mail scripts at
http://www.cgi-resources.com/
 

Topics:

FormMail