>  기사  >  백엔드 개발  >  [PHP] EOD 及 mail 发布_PHP

[PHP] EOD 及 mail 发布_PHP

WBOY
WBOY원래의
2016-06-01 12:34:561052검색

$message=

......成堆的字符串 如批量HTML代码 可以念

EOD;

装载到  $message 中。

$to="digico@123.com";

$mail ="hts@123.com";

$zhuti ="我爱你";   // 信件主题

// $mailheaders .="Content-Type=text/html;\r\n\tcharset=gb2312\r\n";
// $mailheaders .="Content-disposition: inline\r\n";
// $mailheaders .="Reply-To:\r\n";
// $mailheaders .="Content-Transfer-Encoding: 7bit\r\n";
$mailheaders = "From: $mail\n";//发信人的地址
// $mailheaders .= "To: $to\n";
 $mailheaders .= "MIME-Version: 1.0\n";
 $mailheaders .= "Content-type: text/html;\tcharset=gb2312";

mail($to,$zhuti,$message,$mailheaders);

OK !

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.