PHP头条
热点:

thinkphp 邮件发送


1.下载PHPMailer类包

下载地址

https://code.google.com/a/apache-extras.org/p/phpmailer

注意把文件放在: ThinkPHP/Extend/Vendor/PHPMailer/class.phpmailer.php

2.

 SendMail(,,'PHPMailer.class#PHPMailer'=
    ->
    ->CharSet='UTF-8'
    ->AddAddress(
    ->Body=
    ->From=C('MAIL_ADDRESS'
    ->FromName='LilyRecruit'
    ->Subject=
    ->Host=C('MAIL_SMTP'
    ->SMTPAuth=
    ->Username=C('MAIL_LOGINNAME'->Password=C('MAIL_PASSWORD'
    (->

3. 发送  $this->SendMail("zg@126.cn","title","bodyinfo ");

www.phpzy.comtrue/php/7844.htmlTechArticlethinkphp 邮件发送 1.下载PHPMailer类包 下载地址 https://code.google.com/a/apache-extras.org/p/phpmailer 注意把文件放在: ThinkPHP/Extend/Vendor/PHPMailer/class.phpmailer.php 2. SendMail( , , 'PHPMailer.class#PHPMailer' =...

相关文章

相关频道:

PHP之友评论

今天推荐