鸿 网 互 联 www.68idc.cn

当前位置 : 主页 > cms安装教程 > 科汛cms > >

GitLab-CE配置smtp发送邮件

来源:互联网 作者:佚名 时间:2015-12-11 06:50
if Rails.env.production? Gitlab::Application.config.action_mailer.delivery_method = :smtp ActionMailer::Base.smtp_settings = { address:


if Rails.env.production?
Gitlab::Application.config.action_mailer.delivery_method = :smtp

ActionMailer::Base.smtp_settings = {
address: "smtp.qq.com",
port: 25,
user_name: "username@domainname", //QQ企业邮箱账号
password: "password",
domain: "smtp.qq.com",
authentication: :plain,
enable_starttls_auto: false,
openssl_verify_mode: 'none' # See ActionMailer documentation for other possible options
}
end

网友评论
<