Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php mail duplicates

Tags:

php

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("[email protected]", "test", "test");
?>
like image 927
cdmo Avatar asked May 30 '26 08:05

cdmo


1 Answers

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.

like image 133
cdmo Avatar answered Jun 01 '26 20:06

cdmo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!