Jump to content

mail() takes forever to send.


optikalefx

Recommended Posts

my server is using sendmail, but it takes about 60 seconds to send.  And by send, i don't mean to recieve the message.  I just have a simple mail call, and when i hit that page it takes about 60 sec to return a result to me.

 

I look for a while on what might be causing, but i can't seem to find anything that i can test out.

Anyone ever have this know whats going on?

Link to comment
https://forums.phpfreaks.com/topic/216115-mail-takes-forever-to-send/
Share on other sites

I don't really care how long it takes for the email to send.  I do care that the php script takes 60 seconds to return meaning, the server is busy for 60 sec, meaning the user will think something is wrong and leave the page while email is trying to send.  Plus you can't load the main website while the server is processing.

 

Something has to be wrong because i've never had this happen before.

using mamp, I don't think its going through an smtp server, i never set one up.

Its important for me to note, that the mail never gets received on my mac, but on the server it does. Which shouldn't happen. So im thinkings there something wrong with both my machine and the server.

 

Yeesh. Maybe port 25 is blocked, ill check.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.