1. 进入 Phabricator 所在目录

# cd /var/www/html/phabricator

2.配置邮件发送来源

# bin/config set metamta.default-address admin@example.com

3.生成 mailers.json 文件

# cat << EOF > mailers.json
[
{
"key": "stmp-mailer",
"type": "smtp",
"options": {
"host": "smtp.exmail.qq.com",
"port": 465,
"user": "admin@example.com",
"password": "admin",
"protocol": "ssl"
}
}
]
EOF

4.导入邮件 smtp 配置

# bin/config set cluster.mailers --stdin < mailers.json

5.发送测试邮件

# bin/mail send-test --to lb@example.com --subject hello < mailers.json
Reading message body from stdin...
Mail sent! You can view details by running this command:

phabricator/ $ ./bin/mail show-outbound --id 12