php - 如何在 Mibew 上设置 SMTP 客户端?
问题描述
我目前在一个网站上使用 Mibew,但我有一个问题,我无法使邮件系统工作。
我已经尝试在文件 /configs/default_configs.yml 中输入 SMTP 设置
mailer:
transport: "smtp"
host: "smtp.xxx.xx.xx"
port: 587
user: "xxx@xxx.xx.xx"
pass: "xxx"
encryption: "STARTTLS"
我还尝试设置文件 vendor/swiftmailer/swiftmailer/lib/classes/Swift/SmtpTransport.php
public function __construct($host = 'smtp.xxx.xx.xx', $port = 587, $security = 'STARTTLS')
{
...
public static function newInstance($host = 'smtp.xxx.xx.xx', $port = 587, $security = 'STARTTLS')
{
我也尝试使用加密/安全 false/null 但这也不起作用。我确实设法使 Drupal 邮件系统工作,所以我知道服务器工作正常,但我一定在 Mibew 中遗漏了一些东西。
感谢您的关注!
解决方案
推荐阅读
- c# - 替换属性设置方法 Ptr
- angular - 如何将服务中的值传递到引导程序上模块的 forRoot() 中?
- java - UI 签名并注册所有片段。启动时出错
- python - 为什么会得到意想不到的 dict
- jquery - 关注jquery的变化
- c++ - 使用索引几何增强多边形
- pyspark - PySpark 并行读取多个文件
- objective-c - 应用程序因 Objective-C 中的错误“Invalid pointer dequeued from free list”而崩溃
- python - Python pandas从左表和右表中获取左表中缺少的行
- kops - 当我为 kops apiVersion 指定错误名称时没有错误,发生了什么?