SendMail.pm 2.09 version

Back To Version 1.09

Google
 


What is new in this version?
MIME format supported! That means you can send attachment. And it supports CGI.pm's file upload too.

What modules do I need?
Please visit to
http://www.tneoh.zoneit.com/perl/SendMail/download to download the compressed file. Insides the compressed file, you will be able to find the instruction for installation and testing.

How to check whether my server has these modules or not?
For the new version of example script, it will tell you if the module does not exist.

How to do a test?
Download the SendMail.pm's compressed file, you will be able to find the instructions to do a test. Or just click
here for a test on this server first.


How Attach() and Inline() work?
$obj->Attach($file);
$obj->Attach($file, \$filedata);
$obj->Attach($file, \*FILEHANDLE);

$obj->Inline($file);
$obj->Inline($file, \$filedata);
$obj->Inline($file, \*FILEHANDLE);

$obj here means the SendMail object that you create by:
$obj = new SendMail;
$file is the pathname of the attachment file, this attachment file can sit in any directories. Inside the email , only the filename is sent, not with the whole pathname.
$filedata contains the attachment's content. This helps when we are writing CGI scripts, uploaded files can be sent immediately without generate any temporary file in the server.
*FILEHANDLE is added, so that users who're using CGI.pm for file uploading can use this module to send attachment easier.


What's the difference between Attach() and Inline()?
Some of the mail readers can show the attachment, like image, html files, when you read the mail, Inline() supports this feature. And attachments sent by Attach(), just a normal attachment link, we need to click on the attachment to view what the file is.