Page 1 of 1

PHP Mail() Time Delay - Cron Job -

Posted: Fri Sep 19, 2008 2:12 pm
by adbox
Hello,

We use the mail() php function to handle our form emails for customer service. The problem is that it takes 15-25 minutes to receive an email after it has been sent. This hurts our customer service.

I would like to set the interval to send out every 3 minutes, and I believe I can do this through a cron job, although I have never operated the cron job section of a control panel.

Or maybe this problem can be handled some other way. I have found little to no documentation on this issue on the internet so far. I appreciate all and any help,
Adbox

Re: PHP Mail() Time Delay - Cron Job -

Posted: Fri Sep 19, 2008 5:19 pm
by josh
When you call mail the message is directly spooled with your MTA, your MTA has it's own internal queue scheduler.. much like how cron would automate your linux tasks. You'll probably have to mess with the settings of your MTA ( sendmail most likely ) and maybe check the log files, and spool to see whats happening