一.页面设置
config -->core-->mail-->metamta.default-address设置发件邮箱
-->metamta.mail-adapter 设置邮件适配器 PhabricatorMailImplementationPHPMailerAdapter
二、配置邮箱信息
到phabricator的目录下,
bin/config set phpmailer.smtp-host smtp.exmail.qq.com
bin/config set phpmailer.smtp-port 25(或尝试465,163邮箱可能是465)
bin/config set phpmailer.smtp-protocol TLS
bin/config set phpmailer.smtp-user 发送邮箱
bin/config set phpmailer.smtp-password 邮箱密码
这些信息可以在phabricator/conf/local/local.json查看
[root@localhost local]# cat local.json { "phpmailer.smtp-user": "***@qq.com", "phpmailer.smtp-password": "邮箱密码", "phpmailer.smtp-port": 25, "phpmailer.smtp-host": "smtp.**.com", "phpmailer.mailer": "smtp", "mysql.host": "localhost", "mysql.pass": "mysql密码", "mysql.user": "root", "mysql.port": "3306", "phabricator.base-uri": "http://****" }
三、检查配置
在页面上发个邮件,使用下面的命令查看是否发送成功
phabricator/ $ ./bin/mail list-outbound # List outbound mail. phabricator/ $ ./bin/mail show-outbound # Show details about messages. phabricator/ $ ./bin/mail send-test # Send test messages.
扫描二维码关注公众号,回复:
885985 查看本文章