$ 0 0 Swap the following two lines$emailTo = $email; $email = 'noreply@website.com';The way it is, $emailTo gets a null value.