Re: Mail() function performance/optimization question
| From: | Wesley Furgiuele | Date: | Tue, 21 May 2002 19:38:29 +0000 |
| Subject: | Re: Mail() function performance/optimization question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98639@lists.php.net to get a copy of this message | ||
I am in a shared hosting environment. Here's the info I grab from
phpinfo():
SunOS admin 5.7 Generic_106541-16 sun4u sparc SUNW,UltraAX-MP
sendmail_path: /usr/lib/sendmail -t
SMTP: localhost
I don't yet know what the "-t" flag means on the Sendmail path. Also, I
included the SMTP value but I am going on the assumption that Sendmail is
what I am using for mail().
Wes
On 5/21/02 3:20 PM, "Miguel Cruz" <mnc@stoic.net> wrote:
> What platform and MTA are you using? Your MTA may be trying to handle the
> message while-u-wait rather than queuing it properly.
>
> miguel
>
> On Tue, 21 May 2002, Wesley Furgiuele wrote:
>> Adding a mail() step to my page increases the page load time from an average
>> of about 2 seconds to nearly 8 seconds. That would be OK if the page
>> completed displaying all the text and then just kind of hung there while the
>> mail() function finished. The page I am using, by the way, is a
>> 5-column/3-row table listing some project information, pulled from a MySQL
>> database.
>>
>> Is there anything I can do to make this appear more responsive for the user?
>> It would be nice if it was actually more responsive, but the illusion will
>> do just fine. I¹ve tried moving the mail() function around in the order,
>> but no matter what it causes part of the page to not finish displaying until
>> mail() has completed.
>