Showing results for 
Show  only  | Search instead for 
Did you mean: 

"mail()" sending 2 emails when executed

In my code - I have a virtual user set up through cPanel and my PHP code calls the function "mail(), yet I am receiving 2 copies of the email when sent.  I have tried to find a solution, but there are no articles that potentially deal with this issue.


I am only calling mail() once in the entire page:


$headers['From'] = "support@mydomain";

echo mail("","Why the doubles","You can't handle the doubles! - so why is this coming in twice!?!?",$headers);


Please advise.


Thank you!