php mail duplicates

前端 未结 4 844
[愿得一人]
[愿得一人] 2021-01-07 02:06

Is there any reason why this would send duplicate emails? I have a PHP page with only this code on it and every time I run it it sends me two emails.



        
4条回答
  •  梦谈多话
    2021-01-07 02:45

    Thanks for the input.

    As it turns out this was a browser plugin issue, specifically ySlow 2.1.0 on Firefox 4.0.1

    I asked our server manager to look into the problem and he reported that the log was showing two hits every time I went to the page. He tried loading it on his machine and the script worked properly and only loaded once. I tried myself on Chrome and it worked, only emailing once. I went through my various add-ons and finally isolated ySlow as the culprit.

    Not sure if this means that ySlow is loading every page twice or what, but I'm going to have to keep it disabled. If anyone has any suggestions about fixing the problem with ySlow, please let me know.

    Thanks again.

提交回复
热议问题