お問い合わせフォームから Outlook.com にメールが送信されません。他のメール アカウントでテストしたところ、問題なく動作しました。その問題を解決するために私にできることはありますか?
私のphpコードは次のとおりです
<?php
$to = 'xxx@xxx.gr';
$headers = 'Content-type: text/plain; charset=UTF-8' . "\r\n";
if(isset($_POST['fullname'])){
$subject1 = mysql_real_escape_string($_POST['fullname']);
$mail = mysql_real_escape_string($_POST['email']);
$message = mysql_real_escape_string($_POST['message']);
$subject = " $subject1 $mail";
mail($to, $subject, $message, $headers);
header("location: contact.php");
exit();
}
?>
前もって感謝します