" . str_replace("\n", "
\n", $message) . ""; if (mail($to, $subject, $message2, $headers)) { echo 'Your message has been sent.'; } else { echo 'There was a problem sending the email.'; } } ?>