MailForm.py 1.0.2 Python script

SPONSORED LINKS

    Specification

  • Version: 1.0.2
  • File size: 0 KB
  • File name: MailForm.py1.0.2.zip
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Python
  • Price:Other Free / Open So
  • Company: Jeff Sykes (View more)

MailForm.py 1.0.2 script description:




Publisher review:
MailForm.py is a CGI script which processes a form from the World Wide Web and sends the forms values to a given recipient or recipients via email. MailForm.py is a CGI script which processes a form from the World Wide Web and sends the forms values to a given recipient or recipients via email. MailForm.py is a Python port of Kelly Yancey's MailForm script, which was written in C. This was, in turn, a port of Matthew Wright's FormMail PERL script. MailForm.py stresses functionality over performance.

InstallationFirst, make sure that Python 2.1 or later is installed on your server. Record the location of the directory where the Python executable is located. For example, /usr/bin/python or C:Python21python.

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.

MailForm.py can provide simple logging of environment variables and error occurences by setting the LOGGING_ENABLED parameter to YES. It will be NO by default. For example, the following setting would enable 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/softpedia/softpedia_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.

MailForm.py requires a "mail_server" field to be set in the forms that point to it. This variable tells MailForm.py what mail server to use to send its outgoing messages. You can override this by setting the MAIL_SERVER variable. If this variable is set, it will always be used by MailServer.py as the outgoing mail server, even if a "mail_server" field is included in the form pointing at MailForm.py. For example:MAIL_SERVER = "mail.example.com"
MailForm.py 1.0.2 is a Python script for Form Processors scripts design by Jeff Sykes. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5