About the usage of phpmailer
Jul 25, 2016 am 09:07 AM
Note: 1. Email character set setting, $mail->CharSet = "GB2312"; // Specify the character set here! Here I only specify GB2312 because this way Outlook can display the email subject normally. I have tried setting it to utf-8 but it displays garbled characters in Outlook. 2. If you are sending emails in html format, remember to also specify 3. If you want to use it to send mass emails, remember to modify the include file function, such as: require("phpmailer/class.phpmailer.php"); Change to require_once("phpmailer/class.phpmailer.php"); Otherwise, class redefinition will occur. Personally, I think that to use phpmailer, first of all, you need to have a mail server. PHP's mail function is not specified. It should be the SMTP set by PHP. Here you need to specify it specifically, and you also need to specify the administrator and password of the mail server. |

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

11 Best PHP URL Shortener Scripts (Free and Premium)

Working with Flash Session Data in Laravel

Simplified HTTP Response Mocking in Laravel Tests

Build a React App With a Laravel Back End: Part 2, React

cURL in PHP: How to Use the PHP cURL Extension in REST APIs

12 Best PHP Chat Scripts on CodeCanyon
