View Single Post
Old 02-07-2003, 07:23 AM  
Captain Evil
Registered User
 
Join Date: Feb 2003
Posts: 164
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?
Captain Evil is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote