알림 이메일을 보내려고하는데 (잘 작동합니다) 링크를 보내려고 HTML 헤더를 추가했습니다 ... 몇 가지 이유로 아무 것도 보이지 않습니다. 원하는 링크가 있어야하는 빈 공간입니다. 있다. 여기 내 코드 :왜 내 링크가 PHP 이메일 기능을 통해 나타나지 않습니까?
if(isset($_POST['commentBlogSubmit']) && $auth) {
$query = "SELECT `Email` FROM `Users` WHERE `id` = '" . $prof->id . "'";
$request = mysql_query($query,$connection) or die(mysql_error());
$result = mysql_fetch_array($request);
$Email = $result['Email'];
$to = $Email;
$subject = "Someone sent you left you a comment";
$message = "You have a new blog comment <br />".
" <a href='http:www.blah.org/indexNew.php'></a>";
$from = "[email protected]";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $from";
mail($to, $subject, $message, $headers);
}
전체 소스 코드를 보려면 스크롤하지 않도록 질문의 소스 코드를 다시 포맷합니다. – Boldewyn