|
Posted by Chris on 01/07/05 04:52
I had a similar problem once upon a time. I had a form, whose results
were getting emailed, sending duplicate submissions occasionally.
The cause, I surmised, was that someone was stopping the download of the
page before it finished, so the code execution stopped, or they were
double clicking the submit button.
The cause was a bit hazy, though ignore_user_abort() fixed it for me. Is
it possible, in your case, that the code is partially executing, and
giving you the impression it's sending dublicate mails?
http://www.php.net/ignore_user_abort
Chris
Jed R. Brubaker wrote:
>Hello all - this problem is so wierd that I don't even know where to start.
>Hopefully you all can give me a couple leads.
>
>I have some reporting systems going on in various places on the server -
>mail() is called when a user does this or that. These scripts are farily
>simple, so I am next to certain is isn't the code - but every once in a
>while, more than one duplicate email will be sent.
>
>What is so strange is that it only occurs for these odd periods of time. For
>example, yesterday from 4pm to this morning at 7am, 2 copies would be sent.
>Last week for several days, 5 copies would be sent.
>
>The emails are frequent enough (every couple of minutes) that it is very
>easy to track, but I don't have a clue as to what would be the cause.
>
>Does anyone have any suggestions as to where to start looking?
>
>Thanks in advance!
>
>
>
Navigation:
[Reply to this message]
|