我在我的电子邮件的PHP文件的顶部,它发送出去的电子邮件只发送文本电子邮件,而不是HTML
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $from <$from>" . "\r\n";
$headers .= 'Cc: [email protected]' . "\r\n";
$headers .= 'Bcc: [email protected]' . "\r\n";
我需要改变这只是一个纯文本电子邮件的代码......做什么我改变。我想第二行的text/html文本/文本,但我不是肯定
请勿建立自己的mime电子邮件。使用PHPMailer(http://phpmailer.worxware.com)或Swiftmailer(http://swiftmailer.org)。他们更容易使用,更加可靠......而且免费。 – 2011-06-15 18:07:48