首页 > 解决方案 > XAMPP:本地发送邮件

问题描述

如何配置 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尝试发送电子邮件时

标签: cakephpxampp

解决方案


推荐阅读