Home PHP Libraries Mail class library php-Mailer mail class
php-Mailer mail class

This email sending function uses a foreign open source code email class.

Things to note:

1, Mail 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 an email in html format, remember to also specify <meta ... charset=GB2312">

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, the class will be redefined.



Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

PHP mailer mail sending_PHP tutorial PHP mailer mail sending_PHP tutorial

13 Jul 2016

PHP mailer mail sending. To send emails with PHP mailer, first download the class library. Because phpmailer loads smtp.163.php, the sender's mailbox must use the 163 mailbox. Other mailboxes need to be introduced by other class libraries. My attachment.xls is what you need.

How to send emails in PHP using pear's own mail class library, pear class library_PHP tutorial How to send emails in PHP using pear's own mail class library, pear class library_PHP tutorial

13 Jul 2016

PHP uses the mail class library that comes with pear to send emails, the pear class library. PHP uses the mail class library that comes with pear to send emails. The pear class library This article describes how PHP uses the mail class library that comes with pear to send emails. Share it with everyone for your reference. Details are as follows

php mail class, php mail_PHP tutorial php mail class, php mail_PHP tutorial

13 Jul 2016

php mail class, php mail. php mail class, php mail. Write a class that uses php socket to send mail. It is simple and easy to use. When using the php program to send mail, in the 163 server, it can be verified in the RCPT command.

Simple use of PHP mail class library PHPMailer_PHP tutorial Simple use of PHP mail class library PHPMailer_PHP tutorial

13 Jul 2016

Simple use of PHP mail class library PHPMailer. Recently I need to use the function of sending emails, which was originally sent using the mail() function that comes with PHP. The php mail() method is very simple, convenient and easy to use, but in addition to NetEase mailbox, QQ mailbox,

PHP mail operation class PHP mail operation class

25 Jul 2016

PHP mail operation class

PHPMailer mail class mail sending_PHP tutorial PHPMailer mail class mail sending_PHP tutorial

13 Jul 2016

PHPMailer mail class mail is sent. We use a foreign open source mail class for this email sending function. The PHPMailer mail class that you may have used is very simple. Today I will talk about a simple usage tutorial. If you need it

See all articles