cakephp - 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
尝试发送电子邮件时
解决方案
推荐阅读
- sql - 使用 SQL 更新 Clob 值
- android - Groupie Android 聊天应用程序,更新特定索引项
- php - 如何防止 PHP CS Fixer 修复特定的函数名称?
- node.js - Knex Insert 和 onConflict 不是函数
- docker - AnzoGraph Docker Free Plus Edition - 许可证问题
- javascript - 获取未定义而不是函数的返回值
- reactjs - 有没有办法在组件之外使用道具?
- firebase - 使用最新 xamarin.firebase Nugets 的 Xamarin.forms firebase 身份验证示例
- python - Python在文本中查找单词标记的偏移量
- drupal-8 - drupal8 + webform + mobile_number