PHP uses Phpmailer to send mail

Source: Internet
Author: User
Tags mail word wrap

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.

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.