This article mainly introduces the PHP implementation in Windows configuration SendMail and through the Mail () function to send mail, a more detailed analysis of the Windows platform SendMail configuration steps and the corresponding use of skills, the need for friends can refer to the following
1, the PHP Mail () function is not available in Windows, you need to install SendMail.
2. Download SendMail components from http://glob.com.au/sendmail/
3, decompression sendmail.zip to the directory, I installed the path is: F:\root\sendMail
4, configuration php.ini, the main configuration of the following 3 items
5, modify Sendmail.ini, file path: F:\root\sendMail\sendmail.ini
smtp_server=smtp.qq.comsmtp_port=25auth_username=yourusernameauth_password=yourpasswordforce_sender=******@ Qq.com
6. Test Send mail
<?phpif (Mail ("test@test.com", "Test", "test message") {echo "Success";} else { echo "fail";}
Related recommendations:
Phpstudy using your own sendmail extension to send messages
Sendai SendMail configuration method for PHP mail functions under IIS official recommendation
sendmail configuration method for PHP mail functions under IIS (official recommendation) _php Tutorial