这是给我答案的链接:
[安装]“ 用于Windows的伪sendmail
”。如果您不使用XAMPP,则可以在这里下载:http :
//glob.com.au/sendmail/sendmail.zip[Modify] the php.ini file to use it (commented out the other lines):[mail function]; For Win32 only.; SMTP = smtp.gmail.com; smtp_port = 25; For Win32 only.; sendmail_from = <e-mail username>@gmail.com; For Unix only. You may supply arguments as well (default: "sendmail -t-i”).
sendmail_path = “C:xamppsendmailsendmail.exe -t”
(忽略“仅Unix”位,因为我们实际上正在使用sendmail)
然后,您必须在安装sendmail的目录中配置“ sendmail.ini”文件:
[sendmail]smtp_server=smtp.gmail.comsmtp_port=25error_logfile=error.logdebug_logfile=debug.logauth_username=<username>auth_password=<password>force_sender=<e-mail username>@gmail.com
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)