$email = $_POST['email']; $to = $email; $subject = "TheBlog Registration"; $message = "Test Email"; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers);
I don't actually have an email address set up at [email protected] Does this have to be an existing address? If not, can anyone tell me what my mistake is?
This post has been edited by Ntwiles: 29 January 2011 - 05:59 PM