I'm configuring 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 refers to:
"/usr/lib/ruby/vendor_ruby/action_mailer/base.rb 433 in 'method_missing'"
I've followed the instructions at http://www.redmine.org/projects/redmine/wiki/EmailConfiguration (I added the relevant email.yml file with the relevant settings) but don't understand what is needed to overcome this error.
What am I doing wrong?
I was just having the same issue. I just removed the line "email_delivery:" and shifted everything 2 spaces back, restarted apache and it seemed to be ok! My email.yml looks like this now:
production:
delivery_method: :smtp
smtp_settings:
address: smpt.example.com
port: 25
domain: example.com
authentication: :none