[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PHP and Sendmail



Hi all,

The same happens using perl scripts where a call to sendmail is made. It takes
long time to send mail to a list of e-mail addresses and we don't know why. If
we reduce the number of e-mail addresses it becomes faster.

Any idea....?

Toni


Randall Clark wrote:

> I am writing a PHP script using the mail command to send an email after a
> user has completed a form on a Raq3. When I access the page with the code in
> it, the page hangs for about 1 min and then sends the mail, but on another
> server that I am running the same code on it works just fine.  I was told
> that it could be that sendmail is looking for the host and does a reverse
> lookup and can not find it. But I have added the reverse lookup for that
> domain and the main server domain just to be safe and it keeps hanging. Any
> help on this subject would be great !
>
> Here is some of my code.
>
> <?php
> mail("username@xxxxxxxxxx", "Registration Recieved",
> "
> Registration Request received from $HTTP_POST_VARS[email]
> Domain Name.....: $HTTP_POST_VARS[domain]
> Your package choice...: $HTTP_POST_VARS[package]
> ",
>      "From: username@xxxxxxxxxx");
> ?>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users