$email = $_POST['email']; $to = $email; $subject = "TheBlog Registration"; $message = "Test Email"; $headers = 'From: email@example.com' . "\r\n" . 'Reply-To: firstname.lastname@example.org' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers);
I don't actually have an email address set up at email@example.com. 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