Web e-mail Package
Web e-mail
Try it out!
Web e-mail
Description
This is a very simple package that allows e-mail messages to be sent from the web. Simply choose who you want to send an e-mail message to from the selection box next to the TO: label. Enter your e-mail address in the FROM: field, enter the subject of your message in the SUBJECT: field, and enter your message in the MESSAGE: area. To send you message click on the "Send" button.
The problem with sending e-mail from the web is that it is pretty close to annonymous e-mail. That is why the TO: field is a selection box. So anyone could send anonymous e-mail, but they could only send it to the people listed in the TO: selection box.
Implementation
The implementation is very basic. The form, when the user clicks on the "Send" button, is submitted and sends its information to a PERL script named mail.cgi. This PERL script takes the information (i.e. to, from, subject, and message) and then sends the mail message through the use of the sendmail program.
Requirements
- An HTTP server with:
- Ability to execute CGI scripts
- PERL version 4 or greater
- sendmail
Changes Needed
There are a few changes that need to be made to make this package work for you. They are as follows:
Make sure the path to perl is correct in the mail.cgi file. The first line of the file is what may need to be changed (i.e. #! /usr/local/bin/perl ).
Make sure the path to the sendmail command is correct in the mail.cgi file. This path is set in the $mailProgram variable in the file.
Edit the index.html file. You need to change the e-mail address list that the user will be able to choose from. Do this by editing and/or adding to the options inside the select name="to" tag.
Download
web_e-mail.tar.gz
Author
Package written by:
J. Lewis Muir
jl-muir@cat.ncsa.uiuc.edu