① go online can send mail application, I was in the Windows system, found a "sendmail.exe" file, download to the official website, there is not only EXE execution program, there are various configurations.
② configuration: In the Sendmail.ini file, we take the QQ mailbox as an example.
Smtp_server=smtp.qq.com
smtp_port=465
Smtp_ssl=auto
Error_logfile=error.log
auth_username=291522145 (email account)
auth_password=saturday123456 (email password)
force_sender=291522145@qq. com
③ configuration php.ini:
[Mail Function]
; For Win32 only.
; Http://php.net/smtp
SMTP = smtp.qq.com
Sendmail_from = 291522145@qq.com
Sendmail_path = "I:\abc\sendmail\sendmail.exe-t"
Mail.add_x_header = On
④php Program:
Ini_set (' display_errors ',0); error_reporting (-1); Ini_set (' log_errors ',1); Error_log (' Today IDs Rain ',1,' 291522145@qq.com ');
After all the configuration, restart the service, and then run the PHP program, you can find your QQ mailbox more than one email.
The above describes the PHP send error log mail, including PHP, error aspects of the content, I hope the PHP tutorial interested in a friend helpful.