Asynchronous mail()

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I changed recently my hosting provider and noticed that PHP waits
until an email is sent using mail()- a big problem if the email takes
a lot of time to deliver.
The solutions I've found aren't available to me since I don't have
access to crons.
Is there any way to prevent this behaviour? Or is there any PHP.INI
setting that could change it?
Thanks in advance!

-- rui

Re: Asynchronous mail()

rui p. wrote:
Quoted text here. Click to load it

This has nothing to do with PHP.  It's all in whether your MTA queues
the outgoing mail or sends it immediately.

It's also possible that they're delaying the response to deter spammers,
but this is less likely.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Re: Asynchronous mail()

In article

Quoted text here. Click to load it

Not really.  The overhead of the mail() function is due to what mail
agent the ISP has setup in their php.ini file.  You don't (nor should
you) have access to change that.  

You should find another hosting provider that gives you cron and shell
access.  The one you currently have isn't really giving you very much
bang for your buck.  Dreamhost is good.

DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically by ignored]

Re: Asynchronous mail()

 I'm stuck, then :-|
 Many thanks, Michael and Jerry!

-- rui

Site Timeline