脚本宝典收集整理的这篇文章主要介绍了php – 完整的邮件标题,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我的代码:
// To send HTML mail,the 'Content-tyPE' header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // AddITional headers $headers .= 'From: MyCompany <welcome@mycompany.COM>' . "\r\n";
还有什么我应该补充的吗?
$headers = "From: testsite < mail@testsite.com >\n"; $headers .= "Cc: testsite < mail@testsite.com >\n"; $headers .= "X-sender: testsite < mail@testsite.com >\n"; $headers .= 'X-Mailer: PHP/' . PHPversion(); $headers .= "X-PRiority: 1\n"; // Urgent message! $headers .= "Return-Path: mail@testsite.com\n"; // Return path for errors $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n";
以上是脚本宝典为你收集整理的php – 完整的邮件标题全部内容,希望文章能够帮你解决php – 完整的邮件标题所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。