phpemailsmtpserver-load

Is sending mails through SMTP better than php mail() in terms of server load?


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 ?


Solution

  • 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?