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.
<?php
mail("abc@def.ghi", "test", "test");
?>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.