FAQ For SendMail.pm

1) Where to download SendMail.pm?
2) How to install SendMail.pm?
3) Got any example?
4) Is SendMail.pm free?
5) I got error:
   Can't locate SendMail.pm in @INC (@INC contains:
   /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
   /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
   /usr/lib/perl5/site_perl .) at (eval 6) line 1.
6) How to specify which SMTP server to be connected?
7) I got errors like:
   "Connection refused"
   "Error connecting to local host at port 25: unknown error."
8) I got some kinds of "Relaying denied" error, what should I do?
9) How to attach files to the email?
10) Can I send HTML page?
11) Can I send binary files?
12) Does SendMail.pm provide any error log?
13) I got "Internal Error".




1) Where to download SendMail.pm?
Ans: http://www.tneoh.zoneit.com/perl/SendMail/download/.

2) How to install SendMail.pm?
Ans: Please find the installation guide comes with the compressed file
downloadable at http://www.tneoh.zoneit.com/perl/SendMail/download/.

3) Got any example?
Ans: Yes, it comes with the compressed file.

4) Is SendMail.pm free?
Ans: Yes, it's absolutely free.

5) I got error:
Can't locate SendMail.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl .) at (eval 6) line 1.
Ans:  Make sure you include the folder where you store those SendMail.pm,
MIME/Base64.pm and MIME/QuotedPrint.pm files into @INC.
    You can do it with:
use lib qw(YOUR/FOLDER);

6) How to specify which SMTP server to be connected?
Ans: $sm = new SendMail("HOSTNAME.OR.IP.OF.YOUR.SMTP.SERVER");

7) I got errors like:
"Connection refused"
"Error connecting to local host at port 25: unknown error."
Ans: Make sure you have specified the correct SMTP server.

8) I got some kinds of "Relaying denied" error, what should I do?
Ans: Check with your SMTP server's administrator, make sure your server, where
your script located, is in the relaying list.

9) How to attach files to the email?
Ans: Please take a look at Inline() and Attach() functions.

10) Can I send HTML page?
Ans: Yes, you can send a HTML page. But the only limitation is that you have
to use absolute URL, eg. http://server/images/image.gif, for those images in
the HTML page.

11) Can I send binary files?
Ans: Of course you can, just look at Attach() and Inline() functions.

12) Does SendMail.pm provide any error log?
Ans: No, but you can enable the debug mode, $obj->setDebug($obj->ON).
With debug mode ON, you can see the communication between your script and the
SMTP server.

13) I got "Internal Error".
Ans: Check your web server's error log file. If you are on unix boxes, make
sure the script is executable.