Project

General

Profile

email configuration

Added by Alexandr Sobolev almost 11 years ago

Hello!
I'm configured notification via mail.ru.
My config file:

production:
   email_delivery:
     delivery_method: :smtp
     smtp_settings:
       address: smtp.mail.ru
       domain: mail.ru
       port: 25
       authentication: :login
       user_name: 'test@mail.ru'
       password: 'blabla'

When i send test mail, get error:

Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT):
  lib/redmine/i18n.rb:32:in `l'
  app/controllers/admin_controller.rb:68:in `rescue in test_email'
  app/controllers/admin_controller.rb:64:in `test_email'

Environment:
  Redmine version                          2.3.0.stable
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.13
  Environment                              production
  Database adapter                         Mysql2

Help please!
Thanks!


Replies (2)

RE: email configuration - Added by Jack Yin almost 11 years ago

Try to delete the conent of "Email Footer",not including "/,\".Only simple word.Try it.

RE: email configuration - Added by Cliff Peng over 10 years ago

I met with the same problem while trying to send the test mail.
On web page:

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

Log:

Started GET "/admin/test_email" for 119.123.4.183 at 2013-07-17 12:30:54 +0800
Processing by AdminController#test_email as HTML
  Rendered mailer/test_email.text.erb within layouts/mailer (0.0ms)
  Rendered mailer/test_email.html.erb within layouts/mailer (0.0ms)
Completed 500 Internal Server Error in 37ms

Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT):
  lib/redmine/i18n.rb:15:in `l'
  app/controllers/admin_controller.rb:69:in `rescue in test_email'
  app/controllers/admin_controller.rb:65:in `test_email'

My ENV:

Environment:
  Redmine version                          2.0.1.stable
  Ruby version                             1.9.3 (i386-mingw32)
  Rails version                            3.2.3
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  no plugin installed

And I have tried the way of empty the Footer setting.

    (1-2/2)