发送电子邮件时出错(已请求 SMTP-AUTH 但缺少密码)

Erreur lors de l'envoi de l'email (SMTP-AUTH requested but missing secret phrase)

我正在使用 Redmine 2.6.4.stable,Ruby 版本 1.9.3-p194 (2012-04-20) [x86_64-linux],Rails 版本 3.2.21。 我无法激活通过电子邮件发送。 我发现了那个错误:"Erreur lors de l'envoi de l'email (SMTP-AUTH requested but missing secret phrase)"。 我在 config/configuration.yml 中检查我的配置,一切正常:

    production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: smtp.google.com
      port: 25
      domain: mydomain.com
      user_name: redmine@mydomain.com

每个人都可能遇到过这样的问题吗?谢谢,请告诉我如何解决它。

此致, 贾斯

第一:你的凭据真的对吗?

如果是,请查看 Open Project Configuration of E-Mail-Notification - Error (SMTP-AUTH requested but missing secret phrase)

开启者可以解决他的问题(当然你必须设置你的凭据/服务器信息):

email_delivery_method: :confounded:mtp #main level, will not work

default: #main level
email_delivery_method: :confounded:mtp #setting for default
smtp_address: smtp.server.com #setting for default
smtp_port: 587
smtp_domain: my-domain.com
smtp_user_name: username
smtp_password: pass
smtp_enable_starttls_auto: true
smtp_authentication: plain

然后不得不重启是apache服务器

and than i have to restart the apache-server. I do not know for now if the passenger-modul or ruby re-read the yml-files after changeing them or the fcgi-modul. Nevertheless it works.

编辑:这是我的电子邮件配置,工作正常

email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: false
address: "host_in_double_question"
port: 587
domain: 'domain_of_mailserver_in_single_quotes'
authentication: :login
user_name: "username_in_double_questions"
password: "password_in_double_quotes"
openssl_verify_mode: 'none'