Hi!
Well, i have a new problem guys and i think this is the best way to solve it.
I have this PHP code, it's very simple, but when i click on SEND it appears "Message sent correctly". Everything is OK. But when i enter HOTMAIL to see the e-mail sent, it doesn't appears. How could be this?
This is the PHP code i'm using:
<?php
$Name = $_POST['Name'];
$email = $_POST['email'];
$Company = $_POST['Company'];
$Subject = $_POST['Subject'];
$header = 'From: ' . $email . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";
$message = "This message was sent by " . $Name . ", from " . $Company . " \r\n";
$message .= "His e-mail is: " . $email . " \r\n";
$message .= "Subject: " . $Subject . " \r\n";
$message .= "Message: " . $_POST['message'] . " \r\n";
$message .= "Sent: " . date('d/m/Y', time());
$for = '
[email protected]';
$subject = "Subject";
if (mail($for, $subject, $message, $header)) {
echo("<p>Message sent correctly!</p>");
} else {
echo("<p>¡ERROR! Message not sent...</p>");
}
?>