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.
You can try to debug at this way
simply put a 'exit' there and try again. If it still sent twice, maybe is the server problem or could be the [mail function] in ‘php.ini’ (sendmail_from & sendmail_path)