Learn PHP to build WAMP environment, often use is wampserver, also very useful, a key fool-type installation, very convenient. But programmers are love toss, always ask for a perfect environment. So used to use, think or the bulk of the environment
The Mail function under Windows system needs to be configured
1. Download from http://glob.com.au/sendmail/Sendmail.zip2. Extract to C: Under, such as C:\php\sendmail, the best short path, long path name may cause problems.3. Modify PHP.ini as
Under Win,
Use PHP's mail function to send mail
The role of the Mail () function:is to connect to the mail serverUse the SMTP protocol to interact with this serverand cast mail
Attention:The 1:mail function does not support the ESMTP
Mail () sendmail QQ Mail
Development environment with the WAMP, download and install the SendMail program, according to the online statement also changed the php.ini and Sendmail.ini
Use Foxmail 7.1 to create their own QQ mailbox account,
Mail () in PHP is always unsuccessful. Mail () sendmail QQ mailbox
Wamp used in the development environment, download and install the sendmail program, and change php. ini and sendmail. ini according to the Internet.
Foxmail 7.1 is used to
The first step:Open URL https://github.com/PHPMailer/PHPMailer/download Phpmailer,phpmailer need PHP sockets extension support, and login QQ mailbox SMTP server must be encrypted by SSL, P HP also has to include OpenSSL support.Step two: Use the
Cases of successful PHP test email sending, and cases of php mail sending. PHP tests successful mail sending cases. The mail () function of php mail sending case is used to connect to the mail server and use the smtp protocol to interact with the
This time to bring you phpmailer use PHP to send e-mail case resolution, phpmailer the use of PHP to send e-mail attention to what, the following is the actual case, together to see.
The first step: open the URL download phpmailer,phpmailer need
Want to test the PHP mail function, the use of Phpmailer can be successful;
But when using SendMail, but always prompted the message failed to send, the configuration has been referred to the following
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.