I have two types of servers I use. One is a dedicated virtual server, the other a shared server. When I use the mail() function in php, it takes about 8 seconds on the shared server but on the DV server it is instantaneous with almost no delay. These are simple emails.
My question is are there php.ini settings I can change to affect mail() (no attachments so no file size issues) or are there other products or methods like SMTP that might work better in that environment. As always, thanks for the input
mail() should be instantaneous because all it does it put the mail in the queue to be sent out, and does not wait for the mail to actually SEND. … hrm.
I would have thought the same thing. So any ideas as to what might be causing the delay? I am running the same code on both servers so I’m confident it’s not in the code. I know it’s probably out of the php realm at this point but figured I’d ask.
I’d guess that unless the “slow” server is sending a lot more mails into the job queue that it’s a difference with the mail server not the PHP server or code