I’ve been working on a rails app that uses the restful authentication plugin. It requires a new user to activate their account through email verification. This has been working up until a few hours ago, when the application suddenly started to fail on email delivery. Instead I am greeted with the following error message:
undefined method `perform_delivery_SMTP' for #<UserMailer:0x28ec7ac>
I’ve reverted to an old revision, created new apps with actionmailer, reinstalled rails, reinstalled all plugins and gems but the error persists. Has anyone ever seen this error before? It would seem I need to add the perform_delivery_SMTP method to the UserMailer model, but how and why? Thanks.
Where do you configure your mailer?
I am guessing that your delivery method is set like this
Use
:smtpinstead of ‘SMTP’ActionMailer assumes you will use
:smtp,:sendmailor:testIt uses that in the
deliver!method like sowhich means that when
delivery_methodis set to ‘SMTP’ it will try to callperform_delivery_SMTP, which doesn’t exist as you found out. When you use the symbol:smtpit callsperform_delivery_smtp, which does exist.