配置php.ini 打开php的配置文件php.ini搜索"[mail function]",配置如下: sendmail_path = "E:\phpStudy\sendmail\sendmail.exe
sendmail_path = “E:\wamp64\sendmail\sendmail.exe -t”//修改成自己的路径 5.到这里就算配置完了,然后重启wamp 然后开始用自己的脚本试试了,php
下面打开命令目录内的 sendmail.ini 文件,加入以下几行: 1 ; configuration for fake sendmail 2 3 ; if this file doesn't exist, sendmail.exe 32 ;default_domain=mydomain.com 33 34 ; log smtp errors to error.log (defaults to same directory as sendmail.exe 36 37 error_logfile=error.log 38 39 ; create debug log as debug.log (defaults to same directory as sendmail.exe