가능한 중복 :
Mail not being received by hotmail.comPHP 메일을받지 못하셨습니까?
나는 내 사이트에이 간단한 양식을하고 심지어 정크 폴더, 내 Hotmail 계정에 보낼 때 나는 이메일을 수신하지 않습니다.
<form action="mail.php" method="POST">
<p><label title="Name">Name:</label><br />
<input type="text" name="name" autocomplete="on" required="required"></p>
<p><label title="Email">Email:</label><br />
<input type="text" name="email" autocomplete="on" required="required"></p>
<p><label title="About">My message is about...</label><br />
<select name="about">
<option value="general">General Query</option>
<option value="wedding">Wedding</option>
<option value="corporate">Corporate Event or Trade Show</option>
<option value="other">Other Event</option>
</select>
<p><label title="Message">Message:</label><br />
<textarea name="message" rows="6" cols="25" required="required"></textarea></p>
<input type="submit" value="Send">
</form>
그리고 mail.php 파일 : 여기
양식 코드입니다! "감사"나는이있는 페이지를보고 끝내는<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$about = $_POST['about'];
$formcontent="From: $name \n About: $about \n Message: $message";
$recipient = "[email protected]";
$subject = "Contact Form";
$mailheader = "Reply-To: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo "Thank You!";
?>
표시된 이메일은 수신되지 않습니다.
로그를 확인하십시오. 로그를 확인하십시오. 그런 다음 메일이 발송되는지 여부를 알려주십시오. 그리고 아니요, 메일을 받았는지 여부는 알 수 없습니다. 이 사이트의 기존 Q & A 자료에서 해당 정보를 쉽게 파악할 수 있습니다. 또한 : http://php.net/mail은 * 반환 값 *을 가지고 있습니다. 문제 해결의 용이함. – hakre
왜 SMTP 서비스를 사용하지 않습니까? –