首页 > 解决方案 > 如何在 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 中遗漏了一些东西。

感谢您的关注!

标签: phpemailsmtpswiftmailersmtpclient

解决方案


推荐阅读