| Python based email form CGI | Written by Jeff Sykes |
|
MailForm.py 1.0.2 Introduction |
MailForm.py 1.0.2 Configuration Fields | MailForm.py 1.0.2 Example | MailForm.py 1.0.2 Copyright |
|
What is MailForm.py 1.0.2 History Getting Started Download a copy of the archive, which contains the script, named "mailform", and the HTML documentation. Unzip the script file in the CGI directory you will use on your webserver. You may want to check that your script has the proper umask/permission settings. On UNIX flavor systems, this is usually 755 for CGI scripts. You also may need to change what user/group "owns" the script using the chown command if you are on a UNIX/Linux server. If you are not sure about this, consult your system administrator. Change the first or "shbang" line of the script to point to location of the Python executable you wrote down. When you do this, make sure to leave the "#!" intact. This allows the webserver to know how to start up Python to run this script. If you are on a Windows system, and use file extensions to tell your server which program to run scripts with, you will have to rename the script file to include an appropriate extension. The script is now installed. There are two variables you may set within the script itself, which are detailed below. Logging LOGGING_ENABLED = YES Log messages are output to the "mailform.log" file in the directory where the script runs. To indicate a different log file, simply change the LOG_PATH variable. For example: LOG_PATH = "/usr/jeff/jeff_mailform.log" If you customize your log location, make sure your permissions are set to allow MailForm.py to write to the desired file and directory. Mail Server Override MAIL_SERVER = "mail.cowz.com" Contacting the Author |
|
|
MailForm.py 1.0.2 Introduction |
MailForm.py 1.0.2 Configuration Fields | MailForm.py 1.0.2 Example | MailForm.py 1.0.2 Copyright |