<\/script>')

Redmine email configuration: "undefined method` email_delivery = 'for ActionMailer :: Base: Class"

I set email notifications for Redmine after installing Redmine for the first time.

I created /etc/redmine/default/email.yml and added:

 # Outgoing email settings production: email_delivery: delivery_method: :smtp smtp_settings: address: smtp.example.com port: 25 domain: example.com authentication: :login user_name: example password: example 

When visiting http: // redmine / I encounter an application exception:

"undefined method 'email_delivery=' for ActionMailer::Base:Class"

which further relates to:

"/usr/lib/ruby/vendor_ruby/action_mailer/base.rb 433 in 'method_missing'"

I followed the instructions at http://www.redmine.org/projects/redmine/wiki/EmailConfiguration (I added the corresponding email.yml file with the appropriate settings), but I don’t understand what it takes to overcome this error.

What am I doing wrong?

+6
source share
3 answers

What version of redmine are you using?

The current version no longer uses email.yml , but configuration.yml for email settings .

From the r4752 commit message :

The email delivery settings that were saved in config / email.yml should be moved to the new configuration file.

+4
source

I had the same problem. I just deleted the line "email_delivery:" and moved all 2 spaces back, restarted apache, and that seemed okay to me! Now my email.yml looks like this:

 production: delivery_method: :smtp smtp_settings: address: smpt.example.com port: 25 domain: example.com authentication: :none 
+10
source

Redmine-2.4.2-1 was provided with the release of Ubuntu 14.04 and Ubuntu, I had to use /etc/redmine/default/email.yml./etc/redmine/default/configuration.yml Redmine was not recognized, although this shows the output errors in the web GUI.

And here is a very simple entry that worked for me (using postfix on localhost):

 production: email_delivery: delivery_method: :sendmail 
0
source

Source: https://habr.com/ru/post/903592/


All Articles