我有一个自动应答器连接到我的表单。提交时,我需要一个人收到一封带有下载链接的电子邮件。自动响应器工作得很好,但只看到纯文本,因此链接无法正常工作。我怎样才能看到HTML以便它理解超链接? 感谢。
$header .= "Content-Type: text/html\r\n";
// Subject of confirmation email.
$conf_subject = 'Your Free Book';
// Who should the confirmation email be from?
$conf_sender = 'Your Book <no-reply@something.com>';
$msg = $_POST['Name'] . ",\n\nThank you for interest in our book. To Download <a href=\"http://something.com\">Click Here</a>";
mail( $_POST['Email'], $conf_subject, $msg, 'From: ' . $conf_sender );
}