Jump to content

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

at least on several servers I work on, outgoing mail is put into a queue and a mail script checks the queue every so often and sends out any email waiting to go out. thus, on systems I am familiar with, email sent via sendmail is not sent instantaneously.

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.

function email($to=NULL, $subject=NULL, $body=NULL) {
	mail($to,$subject, $body);
}

 

It worked on my last macbook, and its worked on every linux server i've ever used. For some reason my current macbook, and this ubuntu install both take forever.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.