Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Apache/PHP sendmail configuration
- Andrew Benjamin
July 12, 2004, 8:12 am
rate this thread
I have a standalone machine running Mandrake 10 with apache server and
The PHP mail() function is working but very slowly. It takes about
10-20 seconds to send a single email. Can anyone advise me on what
could be causing this? I have tried using mail() on other apache
setups and the response time has been much faster.
Below is the relevant section from my php.ini:
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = firstname.lastname@example.org
; For Unix only. You may supply arguments as well (default: "sendmail
- Ruben van Engelenburg
July 12, 2004, 5:57 pm
Re: Apache/PHP sendmail configuration
On 07/12/2004 07:12 AM, Andrew Benjamin wrote:
How slowly? Does it wait like 1 minute before delivering?
Or it waits some time but less than 1 minute?
If it waits one minute, that is likely a missing reverse DNS register
for your IP.
If it is not that much, it may be because sendmail by default attempts
to deliver messages immediately and depending on your destination it may
take a while to have your message accepted.
In this case the solution is to use the appropriate message delivery
mode, which is certainly not the immediate/interactive mode. Take a look
at this class that comes with a sub-class specialized in deliverying via
sendmail. It lets you configure the sendmail delivery mode before
sending. Take a look at the documentation of the class for mode details.
PHP Classes - Free ready to use OOP components written in PHP
PHP Reviews - Reviews of PHP books and other products
Metastorage - Data object relational mapping layer generator