Patched sendmail.pm ver. 2.04

SendMail -- This is a perl module which is using Socket to connect the SMTP port to send mails. (http://www.tneoh.zoneit.com/perl/SendMail/)

In some cases it is impossible to take advantage of all possibilities of this remarkable module, owing to impossibility of connection with SMTP server. It can happen if is a firewall, or is a protection from spam etc. In this case it is possible to take advantage of patched module sendmail.pm.

The operation with the patched module does not differ from operation with original sendmail.pm, however instead of SMTP server it is possible to point a name of the program for a dispatch of the messages

If in original sendmail.pm you are obliged to point SMTP the server as follows:

$smtpport = 25;
$obj=new SendMail();
$obj=new SendMail('localhost');
$obj=new SendMail('smtp.server.com', $smtpport);

That in the patched module can be made so (for example to use linux sendmail program):

$obj=new SendMail();
$obj=new SendMail('|/usr/sbin/sendmail -t');

Then name of the file must begins from '|' and (of course) it must be executable