$ MessageEOD ...... a bunch of strings such as batch HTML code can be read and loaded into $ message. $ Todigico@123.com; $ mailhts@123.com; $ zhti I love you; Mail subject $ mailheaders. Content-Typetexthtml; rntcharsetgb2312rn; $ mailheaders. Co $ message = <
... A bunch of strings, such as batch HTML code, can be read.
EOD;
Load to $ message.
$ To = "digico@123.com ";
$ Mail = "hts@123.com ";
$ Zhui= "I love you"; // subject
// $ 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"; // The sender's address
// $ Mailheaders. = "To: $ to \ n ";
$ Mailheaders. = "MIME-Version: 1.0 \ n ";
$ Mailheaders. = "Content-type: text/html; \ tcharset = gb2312 ";
Mail ($ to, $ zhui, $ message, $ mailheaders );
OK!