rom109
asked on
Why does php mail() take 30 seconds to run on my VPS?
I was running a website on a shared hosting account. Part of this website involved sending a lot of messages via PHP mail(). Unfortunately, all shared hosting providers I could find had a cap on how many emails could be sent per hour.
So, I decided to get a VPS. I am cheap, so I thought I would get an unmanaged one with cpanel. Everything is fine and dandy, I have everything up and running. The only problem I have, is that every message sent by php mail takes about 30 seconds to send. The same thing happens when I send via the PEAR SMTP package. Takes about 30 seconds, and sends three times.
It could be a DNS issue, I had no idea how to set it up, so I guessed:
A-type: @ smsalertsonline.com 174.36.99.28
A-type: www.smsalertsonline.com 174.36.99.28
MX entry: @ smsalertsonline.com - Mailer-server: smsalertsonline.com
Could it be a problem with sendmail? Is something not configured properly? Exim?
So, I decided to get a VPS. I am cheap, so I thought I would get an unmanaged one with cpanel. Everything is fine and dandy, I have everything up and running. The only problem I have, is that every message sent by php mail takes about 30 seconds to send. The same thing happens when I send via the PEAR SMTP package. Takes about 30 seconds, and sends three times.
It could be a DNS issue, I had no idea how to set it up, so I guessed:
A-type: @ smsalertsonline.com 174.36.99.28
A-type: www.smsalertsonline.com 174.36.99.28
MX entry: @ smsalertsonline.com - Mailer-server: smsalertsonline.com
Could it be a problem with sendmail? Is something not configured properly? Exim?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.