|
Posted by C. on 08/02/07 12:02
On 1 Aug, 22:49, crazycoo...@gmail.com wrote:
>
> Regardless, I have a very similar problem; I am consistently getting
> five emails per each PHP mail() call. While this originally showed up
> in a loop generating a flood of email, I explicitly made a single
> direct mail call using hard coded strings and I confirmed the same
> behavior. I have spent most of today fighting with this and I can
> confidently rule out that the mail() function is being accidentally
> called multiple times (unless PHP is reloading the page multiple times
> before finally rendering back or something else really bizarre)
<snip>
>
> I am developing locally right now on a WinXP box (SP2) with PHP 5 via
> IIS. If it matters, I had to configure IIS such that .html extensions
> are mapped to "C:\Progra~1\PHP\php5isapi.dll" for GET,POST, and HEAD
> since this clients site is all .html files with embedded PHP. The SMTP
> is an exchange server.
>
You should really think about upgrading to a proper web host and MTA.
There are 3 obvious possiblities:
1) one invocation of mail() is sending lots of messages
2) the page is being invoked multiple times for a single request
3) the MTA is translating one request from the webserver into multiple
emails
Check your webserver log to see how many times the page is being
rendered (2)
Use Wireshark to see how many times the page is being requested by
your browser(2) and what requests it is sending to the MTA (3).
If you're still stuck ask for more help explaining what you have now
discovered.
HTH
C.
[Back to original message]
|