elm/identity_smtp

为每个身份设置独立的 SMTP 配置

1.6.0 2022-06-14 10:55 UTC

This package is auto-updated.

Last update: 2024-09-15 07:32:24 UTC


README

此 Roundcube 插件允许您设置与 RC 安装默认设置不同的 SMTP 服务器。

安装

此插件可在 Packagist 上获取。

手动安装

$ cd /path/to/roundcube/plugins
$ git clone https://github.com/deflomu/Roundcube-SMTP-per-Identity-Plugin.git identity_smtp

使用特定版本

$ git checkout 1.6.0

1.6.0 替换为 此处 找到的任何版本

插件文件夹必须命名为 identity_smtp。

config/main.inc.php 中将 identity_smtp 添加到 $rcmail_config['plugins']

必须在 config/main.inc.php 中设置默认 SMTP 服务器,否则 Roundcube 不会调用任何 SMTP 函数,插件将无法工作。

版本

每个版本的 主版本号 + 次版本号 将与它兼容的 Roundcube 最新版本相匹配。如果您找不到适合您安装的版本,请使用最接近的新版本。

使用方法

Identities 设置中,您可以为每个身份指定一个用于发送邮件的替代 SMTP 服务器。当撰写电子邮件时,只需选择您想要使用的身份即可。

示例

Gmail

Roundcube 1.6+

  • 服务器主机: tls://smtp.gmail.com:587
  • 用户名: example@gmail.com
  • 密码: HighlySecurePassw0rd

Roundcube 1.5 及以下

  • 服务器 IP/主机名: tls://smtp.gmail.com
  • 服务器端口: 587
  • 用户名: example@gmail.com
  • 密码: HighlySecurePassw0rd

注意:截至 2022 年 5 月 30 日,Google 阻止使用您的账户密码发送电子邮件。要获取用于发送电子邮件的工作密码,请使用 应用程序特定密码