プロジェクト

全般

プロフィール

Vote #64835

完了

Email notification does not work if user_name is a number

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email notifications_9
対象バージョン:
開始日:
2009/03/07
期日:
進捗率:

0%

予定工数:
category_id:
9
version_id:
6
issue_org_id:
2927
author_id:
4358
assigned_to_id:
0
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
7
ステータス-->[Closed]

説明

When user_name is a number you cannot send emails according to email.yml.example

An error occurred while sending mail (can't convert Fixnum into String)

Not working settings:

production:
  delivery_method: :smtp
  smtp_settings:
    address: smtprelaylb.ispgateway.de
    port: 25
#   domain: ispgateway.de
    authentication: :login
    user_name: 20002456
    password: blueberry

Solution: Working Settings with adjusted user_name

production:
  delivery_method: :smtp
  smtp_settings:
    address: smtprelaylb.ispgateway.de
    port: 25
#   domain: ispgateway.de
    authentication: :login
    user_name: "20002456"
    password: blueberry

You should adjust email.yml.example or fix the code (because finding out this takes some time for a not ruby developer like me). Notice that the same happens if the password is a number (see #2738)


journals

YAML will automatically unserialize 20002456 as an integer, and "20002456" as a string.
I don't want to patch ActionMailer, so double quotes are added to email.yml.example in r2564.
Thanks for pointing this out.
--------------------------------------------------------------------------------
Actual area is the password field.
Please change from;
<pre>
password: blablabla
</pre>
to;
<pre>
password: "blablabla"
</pre>
That solved my problem.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリEmail notifications_9 にセット
  • 対象バージョン0.9.0_6 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0