Phpmailer is a free PHP mail send plug-in, we can use Phpmailer login to our designated mail and then use this email to send us automatic mail, this now free mailbox like 163,sina support, All right, crap don't say much. Take a look at a phpmainer 163 mail send mail.
A local server that does not send mail is a good choice to send mail with a ready-made SMTP server, the tool used here is Phpmailer (Version 5.2.0), and the SMTP server chooses Gmail and 163.
1. Use Gmail to send the script
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 The |
|
2. Use 163 script to send mail
You only need to change the SMTP configuration and account password, SMTP configuration is as follows
?
1 2 3 4 5 6 7 |
Set SMTP parameters//Note there is no need for SSL protocol $mail->ISSMTP (); $mail->smtpauth = true; $mail->smtpkeepalive = true; $mail->host = "smtp.163.com"; $mail->port = 25; |
Testing through in a local wampserver environment requires opening the PHP_OPENSSL extension.
The above mentioned is the entire content of this article, I hope you can enjoy.