有什么办法可以将 HTML 代码放入电子邮件和自动回复消息中?当我尝试使用 HTML 代码输出电子邮件时。
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
$mailto = 'info@website.com';
$mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto;
$subject = 'Email Subject';
$message = 'Hello, Email message...'; // Want to try something like '<Strong>Hello</strong> Email message...'
$success_url = './success.php';
$error_url = './failed.php';
$error = '';
$autoresponder_from = 'noreply@website.com';
$autoresponder_subject = 'Auto Response Subject';
$autoresponder_message = 'Hello John, Thank you.'; // Want to try something like '<Strong>Hello John</strong> Thank you.'