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?
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 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