Actions
Defect #2927
closedEmail notification does not work if user_name is a number
Start date:
2009-03-07
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
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)
Updated by Jean-Philippe Lang over 15 years ago
- Status changed from New to Closed
- Target version set to 0.9.0
- Resolution set to Fixed
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.
Updated by Sunny Arge over 8 years ago
Actual area is the password field.
Please change from;
password: blablabla
to;
password: "blablabla"
That solved my problem.
Actions