Redmine email configuration: "undefined method `email_delivery=' for ActionMailer::Base:Class"
Solution 1
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.
Solution 2
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
Jon Cram
I'm Jon Cram, a software developer and interface designer living with my wife and cat on a boat near London (UK) in a house in Cardiff. I work for Box UK Lime Green Tangerine myself on a new startup. I work mostly with web apps, developing in PHP for quick-and-easy bits and Java for heavy-duty bits. I recently discovered that Grails is the best thing ever. I own and run Hosting Reborn, the UK's first pay-as-you-go web hosting service.
Updated on June 09, 2022Comments
-
Jon Cram almost 2 years
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?
-
SMTF over 11 yearsThis has also just solved this problem for me on Ubuntu 10.04
-
BTR Naidu almost 11 yearsNot in mac os x with redmine 2.3
-
Semo about 7 yearsOldie but goldie. :-) It solved the issue on Ubuntu 16.04 with Redmine from the repository. Thx