Redmine 2.3.2 Gmail的电子邮件配置

时间:2013-09-02 11:37:09

标签: email gmail redmine

我们最近从下载的虚拟机运行Redmine 2.3.2并设置了一些初始设置。我需要为gmail设置电子邮件配置。我将configuration.yml中找到的文件opt/bitnami/apps/redmine/htdocs/config编辑为以下内容:

production:
email_delivery:
delivery_method: :smtp
smtp_settings:
tls: true
address: "smtp.gmail.com" 
port: 587
domain: "smtp.gmail.com" 
authentication: :plain
user_name: "user@gmail.com" 
password: "password" 
enable_starttls_auto: true

当我尝试浏览localhost/redmine

时,我仍然收到以下错误消息
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.

有什么想法吗?

嗨,谢谢你的回复。现在似乎取得了一些进展:)现在的错误是不同的:发送邮件时出错(连接被拒绝 - 连接(2))。 以下是configuration.yml,我在括号中添加了空格数(sp)以确认

production: (no sp) 
  email_delivery: (2 sp at beginning) 
    delivery_method: :smtp (4 sp at beginning, 1 sp between the colons) 
    smtp_settings: (4 sp) 
      enable_startttls_auto: true (6 sp,1 sp after colon) 
      address: "smtp.gmail.com" (6 sp,1 sp after colon) 
      port: '587' (6 sp,1 sp after colon,single inverted commas) 
      domain: "smtp.gmail.com" (6 sp, 1 sp after colon) 
      authentication: plain (6 sp, 1 sp after colon) 
      user_name: "username@gmail.com" (6 sp,1 sp after colon) 
      password: "1234" (6 sp, 1 sp after colon)

我也删除了单引号和引号并没有成功。什么可能是错的想法?是否有任何日志文件可以提供有关后台发生的更多信息? 谢谢:))

1 个答案:

答案 0 :(得分:2)

它应该看起来像这样

production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      enable_starttls_auto: true
      address: "smtp.gmail.com" 
      port: '587'
      domain: "smtp.gmail.com" 
      authentication: :plain
      user_name: "your_email@gmail.com" 
      password: "your_password"