mail() function doesn´t work properly

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
myseo
Forum Newbie
Posts: 3
Joined: Wed May 21, 2008 4:29 am

mail() function doesn´t work properly

Post by myseo »

Hi there,

I got a problem with the php mail() function which obviously delays my script processing a lot. Like e.g. if I run a script that uses mail function the script would work fine till the line where the mail function is, then would take minutes to send a single mail by mail-function, and then would process the rest of the script fine again.

The same script works all fine on other servers I tested. So I assume the reason should be somehow the server setup. Since I got root access to that server I would probably be able to solve the problem if I would know where I would have to look. Does anyone of you know, where to look? :)
mikelbring
Forum Commoner
Posts: 38
Joined: Sat Jan 05, 2008 5:28 pm

Re: mail() function doesn´t work properly

Post by mikelbring »

Your server might not have a smtp mail server.
myseo
Forum Newbie
Posts: 3
Joined: Wed May 21, 2008 4:29 am

Re: mail() function doesn´t work properly

Post by myseo »

Ic but wouldn´t that lead to no emailsending at all? But the Emails are sent, only it takes several minutes to do so and the script isn´t processed any further for that time.

Also sendmail is installed, so I guess that should last, doesn´t it? :)
myseo
Forum Newbie
Posts: 3
Joined: Wed May 21, 2008 4:29 am

Re: mail() function doesn´t work properly

Post by myseo »

you were right it seems... now that I installed postfix, there is no delay allthough mails aren´t delivered either but keep in queq for "unknown mail transport error"... ;) :)

how I hate to try to configure something like postfix I know jack about.. ;)
Post Reply