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