1

我们最近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)

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

4

1 回答 1

1

it should look something like this

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" 
于 2013-09-03T10:49:53.000 回答