Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    CGI::ContactForm 1.50

    Download button

    No screenshots available
    Downloads: 460  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.9/5)
    10 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Gunnar Hjalmarsson | More programs
    Perl Artistic License / FREE
    March 8th, 2009, 22:08 GMT [view history]
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    CGI::ContactForm description

    A Perl module that can generate a web contact form.

    CGI::ContactForm is a Perl module that can generate a web contact form.

    SYNOPSIS

    use CGI::ContactForm;

    contactform (
    recname => 'John Smith',
    recmail => 'john.smith@example.com',
    styleurl => '/style/ContactForm.css',
    );


    This module generates a contact form for the web when the routine contactform() is called from a CGI script. Arguments are passed to the module as a list of key/value pairs.

    CGI::ContactForm sends a well formated (plain text format=flowed in accordance with RFC 2646) email message, with the sender's address in the From: header.

    By default the sender gets a bcc copy. If the email address stated by the sender is invalid, by default the failure message is sent to the recipient address, through which you know that you don't need to bother with a reply, at least not to that address... However, by setting the nocopy argument you can prevent the sender copy from being sent.
    Arguments

    CGI::ContactForm takes the following arguments:

    Default value
    =============
    Compulsory
    ----------
    recname (none)
    recmail (none)

    Optional
    --------
    smtp 'localhost'
    styleurl (none)
    returnlinktext 'Main Page'
    returnlinkurl '/'
    subject (none)
    nocopy 0
    bouncetosender 0
    formtmplpath (none)
    resulttmplpath (none)
    maxsize 100 (KiB)
    tempdir (none)
    spamfilter '(?i:|[/url])' (Perl regex)

    Additional arguments, intended for forms at non-English sites
    -------------------------------------------------------------
    title 'Send email to'
    namelabel 'Your name:'
    emaillabel 'Your email:'
    subjectlabel 'Subject:'
    msglabel 'Message:'
    reset 'Reset'
    send 'Send'
    erroralert 'Fields with %s need to be filled or corrected.'
    marked 'marked labels'
    thanks 'Thanks for your message!'
    sent_to 'The message was sent to %s with a copy to %s.'
    sent_to_short 'The message was sent to %s.'
    encoding 'iso-8859-1'

    Customization

    There are only two compulsory arguments. The example CGI script contact.pl, that is included in the distribution, also uses the styleurl argument, assuming the use of the enclosed style sheet ContactForm.css. That results in a decently styled form with a minimum of effort.

    If the default value localhost isn't sufficient to identify the local SMTP server, you may need to explicitly state its host name or IP address via the smtp argument.

    As you can see from the list over available arguments, all the text strings can be changed, and as regards the presentation, you can of course edit the style sheet to your liking.

    If you want to modify the HTML markup, you can have CGI::ContactForm make use of one or two templates. The enclosed example templates ContactForm_form.tmpl and ContactForm_result.tmpl can be activated via the formtmplpath respective resulttmplpath arguments, and used as a starting point for a customized markup.

    Product's homepage

    Requirements:

    · Perl

    What's New in This Release: [ read full changelog ]

    · MIME encoding (quoted-printable) of bytes representing non-ASCII characters was added.
    · Max line length will refer to characters, not bytes (if Encode is installed).

      


    TAGS:

    contact form | CGI form | Perl module | CGI | web | contact

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM