これは私のメーリングコードです:
<?php
error_reporting(E_ALL);
$user_subject = "Ticket - Budget Notification";
$user_headers = "From: mariyadavis90@gmail.com\r\n";
$user_headers .= "MIME-Version: 1.0\r\n";
$user_headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$user_part = '<html><body>';
$user_part .= '<div style="background-color: #EEEEEE;border-bottom: 1px solid #DCDCDC;padding: 10px 10px 20px;width: 500px; float:left;font-size:12px;font-weight:bold;">';
$user_part1 = '<div style="width:500px;">';
$user_part1 .= '<div style="width:500px;background-color:#eeeeee;padding: 10px 0 20px;border-bottom:1px solid #dcdcdc;">';
$user_part1 .= '<div style="float:left;width:150px;color:#666666;margin-left:20px;font-size:12px;font-weight:bold;">';
$user_part1 .= '</div></div>';
$user_part1 .= '<div style="width:450px;background-color:#eeeeee;padding: 10px 0 20px;border-bottom:1px solid #dcdcdc; height:auto; float:left;font-size:12px;margin-left:50px; font-weight:bold;">';
$user_part3 = '</div></div></div>';
$user_part3 .= '</body></html>';
$user_center_part1 = '';
$user_center_part = 'The following Tickets are reached its budget ,';
$user_center_part2='<div style="float:left;width:auto;color:#000000;font-size:12px;margin-left:75px; font-weight:bold; height:auto; margin-top:10px;">Ticket #10 reached 100% of its budget</div>';
$user_to = 'galtech.staffs@gmail.com';
if($user_to){
$user_center_part1 = 'Dear Admin ,';
$user_message = $user_part.$user_center_part1.$user_part1.$user_center_part.$user_center_part2.$user_part3;
if(mail($user_to, $user_subject, $user_message, $user_headers))
{
echo "Mail Send Successfully";
}else{
echo "Mail Not Send Successfully";
}
}
?>
この郵送コードを使用すると、アカウントにメールが届きません。私のコードの問題は何ですか? 口座には何も届きません。Mail Sent Successfully
毎回表示されます。