SendMail.pm Version 2.09 Demonstration Page

Last Modified: 04th.March.2003

FAQ For SendMail.pm


Normal Perl Script Testing

  1. Make sure SendMail, MIME::Base64 and MIME::QuotedPrint modules are installed.
  2. Check testSendMail.pl for modifications that you need to do. And welcome.gif is in this directory.
  3. Run the script in command line. ("perl testSendMail.pl" in unix system.)
  4. If SendMail.pm is not in the standard search path of perl, add the following line to the top of the SendMail.cgi script:
    use lib qw(/path/of/directory/where/this/SendMail.pm/is/saved);
    OR
    BEGIN { push(@INC, "/path/of/directory/where/this/SendMail.pm/is/saved"); }
    Or just run the command:
    perl -I/path/of/directory/where/this/SendMail.pm/is/saved testSendMail.pl
    For MIME::Base64 and MIME::QuotedPrint, change the path to: /path/of/directory/where/MIME/directory/is
    (Not where Base64.pm and QuotedPrint.pm are.)

Perl CGI Testing

  1. Make sure SendMail, MIME::Base64 and MIME::QuotedPrint modules are installed.
  2. Check SendMail.cgi for modifications that you need to do. And welcome.gif is in this directory.
  3. Change the file mode of SendMail.cgi to be executable. ("chmod 755 SendMail.cgi" in unix system.)
  4. Go to Testing Page For SendMail.cgi to do a test. Very simple, just fill in the form and submit it, you will see the result.
  5. If SendMail.pm is not in the standard search path of perl, add the following line to the top of the SendMail.cgi script:
    use lib qw(/path/of/directory/where/this/SendMail.pm/is/saved);
    OR
    BEGIN { push(@INC, "/path/of/directory/where/this/SendMail.pm/is/saved"); }
    For MIME::Base64 and MIME::QuotedPrint, change the path to: /path/of/directory/where/MIME/directory/is
    (Not where Base64.pm and QuotedPrint.pm are.)

Perl CGI Testing Without Telnet Access

  1. Upload the files in this directory into your web server.
  2. Upload SendMail.pm into the same directory.
  3. Upload Base64.pm and QuotedPrint.pm into sub directory called "MIME" if these modules are not installed.
  4. Make sure SendMail.cgi is executable.
  5. Go to Testing Page For SendMail.cgi to do a test. Very simple, just fill in the form and submit it, you will see the result.

Possible Errors

  1. Path of perl is not correct at the first line of the script. Get the correct path from your web administrator.
  2. SendMail.pm is not inside the perl's search path directories. Add the following line to the top of the SendMail.cgi script:
    use lib qw(/path/of/directory/where/this/SendMail.pm/is/saved);
    OR
    BEGIN { push(@INC, "/path/of/directory/where/this/SendMail.pm/is/saved"); }
    For MIME::Base64 and MIME::QuotedPrint, change the path to: /path/of/directory/where/MIME/directory/is
    (Not where Base64.pm and QuotedPrint.pm are.)
  3. You have not selected your SMTP server or the server that you run your script at doesn't have a SMTP server running on it.
  4. Relaying denied, most of the SMTP servers don't support relaying to avoid spamming. You really need to find one for your script.
  5. MIME::Base64 and MIME::QuotedPrint are not installed.

Rate this Script @ The CGI Resource Index!
Script Rating:
For any comments, bugs or questions, you are welcome to send an email to tneohcb@pc.jaring.my.