New test thinkphp32 integrates PHPMailer to send emails

Source: Internet
Author: User
: This article mainly introduces how to integrate PHPMailer to send emails to thinkphp32. For more information about PHP tutorials, see. PHPMailer official website: http://phpmailer.worxware.com/

PHPMailer latest class library: [click to download]

PHPMailerGitHub: https ://GitHub.com/synchro/phpmailer. this page also contains use cases.

Refer to http://my.oschina.net/BearCatYN/blog/299192 blog

Only the directory settings are selected.

Articles for reference http://jingyan.baidu.com/article/0bc808fc6498cd1bd585b95c.html
Refer to the code and php. in configuration.

Even if the above steps are completed, the SMTP class cannot be found, as long as you start introducing it in class. phpmailer. php

Require_ Once ("class. smtp. php ");
You can.

Smtp server: smtp.163.com
Server User: xxxxx@163.com
Server password: xxxxxx

Send email "/>

The following settings allow you to debug SMTP error messages.

$ Mail-> SMTPDebug = 3; // disable SMTP debugging.

// 1 = errors and messages

// 2 = messages only

$ Mail-> ErrorInfo; // you can obtain error information.

The above introduces the new thinkphp32 integration PHPMailer to send emails, including The require, Git, github content, hope to be helpful to friends interested in PHP tutorials.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.