Introduction: This is the PHP mail details page, introduced and PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 329773 'rolling = 'no'>
You must first configure PHP. ini
Remove ";" before extension = php_imap.dll
Http://php.net/manual/en/function.imap-mail-compose.php
Imap_mail_compose creates a mime message based on the given envelope and body.
StringImap_mail_compose(Array$ Envelope, Array$ Body)
The envelop body is an array.
<? PHP $ envelope ["from"] = "joe@example.com"; $ envelope ["to"] = "foo@example.com"; $ envelope ["cc"] = "bar@example.com "; $ Part1 ["type"] = typemultipart; $ Part1 ["subtype"] = "mixed"; $ filename = "/tmp/imap.c.gz"; $ fp = fopen ($ filename, "R"); $ contents = fread ($ FP, filesize ($ filename); fclose ($ FP); $ Part2 ["type"] = typeapplication; $ Part2 ["encoding"] = encbinary; $ Part2 ["subtype"] = "octet-stream"; $ Part2 ["descriptio N "] = basename ($ filename); $ Part2 [" contents. data "] = $ contents; $ Part3 [" type "] = typetext; $ Part3 [" subtype "] =" plain "; $ Part3 ["Description"] = "description3"; $ Part3 ["contents. data "] =" contents. data3 \ n \ t "; $ body [1] = $ Part1; $ body [2] = $ Part2; $ body [3] = $ Part3; echo nl2br (imap_mail_compose ($ envelope, $ body);?>
More articles about "php mail"
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/329773.html pageno: 12.