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
What version of redmine are you using?
The current version doesn't use email.yml
anymore, but configuration.yml
for email settings.
From the commit message of r4752:
Email delivery settings that were stored in config/email.yml should be moved to this new configuration file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With