Discover how to send email using php using gmail smtp, include the articles, news, trends, analysis and practical advice about how to send email using php using gmail smtp on alibabacloud.com
Phpmailer version used: 5.2.1
The following are some of the code given in the example folder of Phpmailer: test_gamil_basic.php.
The code is as follows
$mail = new Phpmailer (); $body = file_get_contents ('
Phpmailer version used: 5.2.1The following are some of the code given in the example folder of Phpmailer: test_gamil_basic.php.
The code is as follows
Copy Code
$mail = new Phpmailer ();$body = file_get_contents ('
Summarize the common problems of PHPmailer group-sending Gmail, and phpmailer group-sending gmail. Summarize the frequently asked questions about PHPmailer group-sending Gmail. you may encounter many frequently asked questions when phpmailer
163 Mailbox
POP3 Server: pop.163.comSMTP Server: smtp.163.com
Yahoo Mail
Note: Yahoo in foxmail more than 4.1 of the version set as follows: (Outlook not yo ~)
POP3 Server:
Summarize the common problems of PHPmailer group-sending Gmail, and phpmailer group-sending gmail
You may encounter many Frequently Asked Questions in PHPmailer Group Sending Gmail. The following summarizes some frequently asked questions and hopes
This article mainly summarizes the common problems of PHPmailer group sending Gmail, and sorts out an example of phpmailer sending gmail mail, if you are interested, you can refer to the many Frequently Asked Questions you encounter in the PHPmailer
PHPmailer group Gmail FAQ. 1. couldnotauthenticate first, if you do not use a loop, it is basically an incorrect account or password. if you use a loop to send a group, remember to call Sm 1 after the send () method ends. cocould not authenticate
System Environment: windows7 + wamp5
Environment requirements: Gmail account + open_ssl + PHPMailer;
1. Open_ssl is not enabled for wamp5 by default. You need to modify php. ini and remove the semicolon before extension = php_openssl.dll;
2.
The mail () function in PHP is very simple, but it also makes it impossible to use the popular SMTP server with verification function (gmail, 163,126, etc)Now, by configuring sendmail provided by XAMPP, PHP's mail () function can send emails
Copy Code code as follows:
/*phpmailer is a PHP function package that is used to send e-mail. The features it provides include:
*. Specify multiple recipients, CC addresses, dark addresses, and reply-to addresses when sending mail
*. Support
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.