Datatrend Software - Digitizing software and CGI Scripts

DataTrend Software
CGI Scripts


AutoContact
AutoFollowUp
AutoMail
AutoMail Lite
Bookkeeper Lite
CountDown
CountDown Lite
CountLink
Script Feedback


PERL/CGI Books
Automail Lite Logo.gif (4052 bytes)

Learn Perl

programming perl.gif (6290 bytes)
Programming Perl

Beginners

learning perl.gif (6288 bytes)
Learning Perl

Writers

perl cookbook.gif (7884 bytes)
Perl Cookbook

Learn by Example

 
 Installation
There are 3 steps to AutoMail Lite Installation
(download the script here if you don't have it)

1. Create the form on your website
2. Configure the AutoMail Lite script
3. Upload the script files
 Create the form
Here is some html code that can be used as a "starter form" on your site. You must change all of the "value" variables to what your site requires.
 Configure the Script
$mailprog
Defines the location of your sendmail program on your unix system.
$mailprog = '/usr/lib/sendmail';

@referers
These are the domain names that are allowed to use the AutoMail Lite script on your site. This is a first level protection against a someone using your form to send spam or to control access to your files. It is NOT foolproof (click here to see how easily "referer" can be spoofed) so if you are going to try to restrict access to important files, this is not a good way to do it.
@referers = ('www.yoursite.com','www.othersite.com');

$auto_type
This is your file attachment type. See mimetype.txt for a list of valid types.
$auto_type = 'application/octet-stream';

$auto_encoding
This is the encoding that will be used for your attachment. See encoding.txt for a list of types. Most users will want 'base64'.
$auto_encoding = 'base64';

$auto_body
This is the body of your auto-response message. It must be a text file. Be sure to test how it looks when mailed for funny line-wrapping etc. Sometimes text files don't translate into email readers very cleanly. This file must also go in the automail directory (with the download file).
$auto_body = 'body.txt';

$message_type
This is your message type. See encoding.txt for valid types and definitions. Most users will want 'multipart/mixed' because you WILL have at least two parts (the attachment and the message body) and most likely you are attaching a binary file.
$message_type = 'multipart/mixed';

$log_or_email
Set this to 'L' to keep log (stores email addresses only!)
Set this to 'E' to send a confirm email.
Set this to 'B' for both.
Set this to 'N' for neither.
$log_or_email = 'B';

NOTES: If you have a single field form, for just email input, a log file will be sufficient to keep these on file for you. If you have other fields in the form (i.e. name, address, etc) you MUST select 'E' or 'B' to send the form to you or else the data will be lost. Also, if two users happen to submit at the same time, it is possible that the 'L' option will not store the email of the second user (to prevent log file corruption). This is only an issue at high volume sites.

$email_log
This is the log file for storing your email addresses if you chose 'L' or 'B' above. This file must also be located in the automail directory with the attachment files (above).
$email_log = 'automail.log';

 Upload the Script Files
In your cgi-script directory
(i.e. www.yoursite.com/cgi-bin)

automail_lite.cgi
This is the script file : chmod 755

In directory named 'automail' off of your cgi-script directory

(i.e. www.yoursite.com/cgi-bin/automail)

automail_lite.log
This is the counter log file : chmod 666

body.txt
This is the body of the email that is to be sent

**YOUR FILES THAT YOU WISH TO ATTACH ALSO GET PLACED IN THE AUTOMAIL DIRECTORY**

AutoContact|AutoMail|Bookkeeper|CountDown|CountLink|
Script Home|Script Feedback


Send mail to info@datatrendsoftware.com with questions about this web site or our products.
Copyright © Datatrend Software.
PO Box 80471, Raleigh, NC USA 27623.
800-536-6951 toll free fax