IndianWebPortal.com

Something Different In Linux

Home » Knowledge » How to use cgiemail?

How to use cgiemail?

Posted by Rishikesh Vispute Categories: Knowledge

How to use cgiemail ?

If you want to use the cgiemail in your site then follow the simple steps.

1) Create one .txt file (result.txt) and add the following sample code and save this file.
=================================
To: test@gmail.com
Subject: questions three

What is your name? [yourname]
What is your quest? [quest]
What is your favourite colour? [colour]

=================================
Note : Replace the “test@gmail.com” with the correct email address on which you want to receive request.

2) Create one .html file (test.html) and add the following sample code and save this file.
=================================

<form action="http://domain.com/cgi-bin/cgiemail/result.txt" method="POST">Your e-mail address: <input name="email" />

Your name: <input name=”yourname” />

Your quest: <input name=”quest” />

Your favourite colour: <input name=”colour” />

<input type=”submit” value=”Send e-mail” />

</form>

=================================
Note: replace “domain.com” to actual your domain name and replace “result.txt” to actual .txt file which you have created.

3) Then you can access the URL http://domain.com/test.html fill the form and click on the “Send e-mail” button.
4) Done

You can create test.html page as per your requirement. I have try provide the simple method to use of cgiemail.


Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...