1 つのホストで完全に動作する php メール スクリプトがあります。ただし、ネットワーク ソリューション ホストで同じスクリプトを使用しようとすると、関数は true を返しますが、電子メールは送信されません。
//get mail function data
$case = $_POST['case'];
$to = addslashes(strip_tags($_POST['to']));
$message = addslashes(strip_tags($_POST['message']));
$subject = addslashes(strip_tags($_POST['subject']));
$message = addslashes(strip_tags($_POST['message']));
$from = "confirmation@website.co";
$headers = "From: $from\r\n";
//send email
if (mail($to,$subject,$message,$headers)){
//formatting for error message
$emailSent = "block";
$emailFailed = "none";
}
else //if the email fails to send
{
$emailSent = "none";
$emailFailed = "block";
}
?>
異なるホストがメールスクリプトで特定の情報を必要とするかどうかを知っている人はいますか?