I'm beginning to search the forum on this but I have a commercial mailer my clients use. It's sent out more than a million emails so far successfully, and the interface is great.
However, mail() is slow. I get about 100 mails sent out per minute, less if there's attachments in the 1MB neighborhood.
It is my understanding that mail() opens and closes the socket each time and this is why it's so slow. Also it won't multithread.
I have heard that C has a mailer module that will do about 30 emails per second, anyone have experience implementing it?
The other thing which I want to change is that the user is supposed to leave the browser window open because if the connection is lost, the mail process will stop. That's very shaky at best. I would like them to see a window which immediately says "Your mail is being sent -- close window" -- perhaps run this to a cron job.
Any assistance? I need resources on things to read.
Thanks,
Sam
[P.S. -- I'd like to amend what I said above about the connection being lost. Just ran a test to send myself 500 emails and closed the browser on email 6 -- it kept running. Somewhere in the back of my mind I remember closing a browser window mid-process and the server figured it out and stopped the process. ]