如何配置XAMPP在本地发送邮件? Gmail的使用教程有很多,但是可以简单的使用localhost吗?
我的php.ini
:
[mail function]
SMTP = localhost
smtp_port = 25
我的sendmail.ini
:
[sendmail]
smtp_server=localhost
smtp_port=25
smtp_ssl=auto
error_logfile=error.log
auth_username=
auth_password=
pop3_server=
pop3_username=
pop3_password=
force_sender=
force_recipient=
hostname=
我确实尝试过更改 smtp_server=127.0.01
、auth_username=root
、hostname=localhost
、...
我得到的只是:Could not send email: unknown
尝试发送电子邮件时