Quote:
Originally posted by gallerypost
Well, i'm not using directly the sendmail software, i'm using a perl module to do the mailing - Mail::Sendmail
http://search.cpan.org/author/MIVKOV...79/Sendmail.pm
Is it ok to use it instead of playing with the sockets myself like your example, or does this module using the sendmail itself ?
Btw, why not using sendmail ?
Thanks.
|
Ah, so you are not using unix sendmail. You are using a sendmail script. Big difference.
The problem with this script is that it opens and closes an smtp socket for every mail sent. Not very efficient.
With the link I just gave you, you should be able to make something that opens an smtp socket connection, sends all your mail, and closes it again. See the difference?