I am sending >1000 mails per day for a mailing list. Right now they are all sent with php mail(). Would it put less load on the server if they were sent through a script with SMTP ?
Asked
Active
Viewed 566 times
2
-
1This might also be of interest, should you decide to send even more e-mails: http://stackoverflow.com/questions/3905734/how-to-send-100-000-emails-weekly/ – Piskvor left the building Nov 07 '11 at 07:32
1 Answers
2
Not really, no: the mail needs to go through SMTP anyway, so you're just changing how it gets there (on some hosts, mail()
uses SMTP internally, anyway). If the server is highly loaded while sending, could it be something else in your script that's generating the load?

Piskvor left the building
- 91,498
- 46
- 177
- 222
-
It could potentially take longer to use an external SMTP connection, since it would have to take time to connect to that host. I'm not sure how this would play out performance-wise, but the requests themselves would probably take longer. – Andy Fleming Nov 07 '11 at 07:37
-
1@DesignerGuy: I was assuming the SMTP server would be on localhost, or on local network. Assuming a server "out there somewhere", it would take longer, yes; OTOH, thus spreading the requests out might help with the load. – Piskvor left the building Nov 07 '11 at 07:44
-
-
1@mike23 - You should try it out and monitor the load. You should be able to tell relatively quickly if it is better or not. – Andy Fleming Nov 07 '11 at 07:47