I have a newsletter script running in my website, sending 1500 emails every week, it's currently using php mail() function, but it's very slow. I've tried both sendmail and SMTP, and both has the same speed.
I read somewhere that a CGI Mailer will be faster than a php script. Is this true? Or is my webhost mail server just slow?
What are the advantages using a CGI mail script instead of PHP? or vise versa
CGI vs PHP mailer
Moderator: General Moderators
-
Spaceman-Spiff
- Forum Newbie
- Posts: 8
- Joined: Wed Nov 06, 2002 2:46 am
No CCs and BCCs
I currently make the script sends 25 mails, rests for 4 secs, then send another 25, until all are sent.
It takes about 5-30 seconds to send 25 mails
since i read that site above, i'm thinking to use a CGI script instead, if it is faster. but i dont know much about CGI to know if its true or not
I currently make the script sends 25 mails, rests for 4 secs, then send another 25, until all are sent.
It takes about 5-30 seconds to send 25 mails
since i read that site above, i'm thinking to use a CGI script instead, if it is faster. but i dont know much about CGI to know if its true or not
-
Spaceman-Spiff
- Forum Newbie
- Posts: 8
- Joined: Wed Nov 06, 2002 2:46 am
-
Spaceman-Spiff
- Forum Newbie
- Posts: 8
- Joined: Wed Nov 06, 2002 2:46 am
I've used Verio before for an online shop - seemed pretty good. I'd be surprised if server speed was an issue, which leaves the efficiency of the particular script you're using - as nielsene has suggested.
You might find a script timer function useful to investigate:
You might find a script timer function useful to investigate:
Code: Select all
<?php
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
?>