Right, assuming that he intends $emailTo and $email to be the same. Reading the rest of the code it's not clear. He's using emailTo as both the send to and send from address and email as the reply to address. He's also defining the From header twice. And if emailTo and email are intended to be the same, why not just define it once?
↧