Reputation: 370
I am send email using php mail() function.But it takes long time to receive to the user.It should receive with 10 minutes.how can i do that and why it is taking long time to receive more than 30 minutes its taking now.
Upvotes: 0
Views: 172
Reputation: 9830
The problem isn't php it's the mail server. Mails get put in a Queue and the server processes them one at a time. So if you are sending lots of emails from the php script they build up and can take minutes, hours, days to be sent if you have enough built up in the queue.
Upvotes: 2