欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

thinkphp 邮件发送_PHP教程

程序员文章站 2022-04-29 19:02:22
...
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.bkjia.comtruehttp://www.bkjia.com/PHPjc/747272.htmlTechArticle1.下载PHPMailer类包 下载地址 https://code.google.com/a/apache-extras.org/p/phpmailer 注意把文件放在: ThinkPHP/Extend/Vendor/PHPMailer/class.phpmailer.php 2. SendMa...
相关标签: aspnet 软件编程