非常简单,将图像保留在服务器上,然后将PHP + CSS发送给它们…
$to = 'bob@example.com';$subject = 'Website Change Reqest';$headers = "From: " . strip_tags($_POST['req-email']) . "rn";$headers .= "Reply-To: ". strip_tags($_POST['req-email']) . "rn";$headers .= "CC: susan@example.comrn";$headers .= "MIME-Version: 1.0rn";$headers .= "Content-Type: text/html; charset=UTF-8rn";$message = '<p><strong>This is strong text</strong> while this is not.</p>';mail($to, $subject, $message, $headers);
正是这一行告诉邮件发件人和收件人,该电子邮件包含(希望)格式正确的HTML,需要对其进行解释:
$headers .= "Content-Type: text/html; charset=UTF-8rn";
这是我获得信息的链接。(link …)
您将需要安全…



