-1
爲什麼郵件功能不能發送郵件給我,請問有誰能幫我嗎? 在這裏,我寫了腳本郵件發送。 是否有任何其他設置發送郵件。 但郵件功能打印總是「成功」,但郵件沒有收到給我。爲什麼郵件功能不能正常工作
$Msg = "Your Suggestion is saved successfully. Please wait for admin approval";
$subject="New Suggestion Posted - Waiting for approval";
//$email_id = '[email protected]';
$email_id = '[email protected]';
$mail_msg="Hello Admin,<br><br>New Suggestion Posted. Waiting for approval.<br><br>
Suggestion : ".$frmdata['description']."<br><br> Click here for <a href='http://www.tatanykshipping.com/index.php'>login</a><br><br> Thanks,<br>The TATA NYK Team";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: Tata NYK <".$_SESSION['EMAIL_ID'].">\r\n";
$headers .= "Organization: Tata NYK\r\n";
echo '<br>sending mail to = ',$email_id;
if(mail($email_id,$subject,$mail_msg,$headers))
echo '<br>Successs';
else
echo '<br>Fail';
非常感謝。
你得到的輸出是什麼?任何錯誤信息? – robert
任何PHP錯誤? – Grrbrr404
不,它打印「成功」,因爲我已經打印。 – Bajrang