2015-01-21 62 views
0

我試圖用wp_mail使用下面的代碼來發送郵件:無法發送郵件使用郵件wp_mail()

$headers[] = 'From: Singhal Competition Classes <[email protected]>'; 
     $headers[] = 'Content-Type: text/html; charset=UTF-8'; 
     $messg = "Hi $user_id .... <br/><br/>Thank You for taking the online exam. Your Score card is as follow : <br/><br/><table><tr><td> 
     Total Correct Answer :</td><td> $correct_ansq </td></tr> 
     <tr><td>Not Given Answer </td><td> $no_ans </td></tr> 
     <tr><td> Total Wrong Answer </td><td> $wrong <br/></td></tr> 
     <tr><td> Percentage </td><td> $result % </td></tr> 
     <tr><td>Result </td><td> $result</td></tr></table> 
     "; 
     $to_mail = $useremail; 
     $subject = "Online Exam Score Card"; 
     wp_mail($to_mail, $subject, $messg, $headers); 

我真wp debug,但是當完成我沒有錯誤的操作

既不我收到任何郵件在我的收件箱或垃圾郵件

什麼可能是以下錯誤

回答