Re: Mailing problem
| From: | David Otton | Date: | Fri, 16 May 2003 11:37:48 +0000 |
| Subject: | Re: Mailing problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147878@lists.php.net to get a copy of this message | ||
On Fri, 16 May 2003 13:55:17 +0930, you wrote:
> I've written a script using the mail() function to send an email on
> a FreeBSD box. When I run the script, the page takes about 20
> seconds to load (obviously sending the mail).
>
> The page loads and the mail is sent fine.
>
> Can anyone explain what might be the cause of the delay or how to
> fix it ?
Comment out just the line that sends the mail.
If the page is still slow, it's your script that's at fault. If it
speeds up, it's your setup. Then you can come back with a more targeted
question.