You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting a "undefined local variable or method `from_address' for #Spree::UserMailer" error when I try to send password resets from spree_auth_devise in my Spree application.
Looking at the implementation in Spree:UserMailer, it would seem that the Spree::BaseMailer isn't available to the UserMailer when the UserMailer is loaded, but I'm too new to this code base to know where to start looking to fix it.
Any suggestions for fixing it?
Thanks,
Neill
The text was updated successfully, but these errors were encountered:
hey @njpearman I've submitted a fix for that. Another possible solution, you could decorate that mailer to add a from_address method. That method could return either a string with a valid email or an array of emails.
Hi @huoxito. Thanks for the suggestions. I've actually already done the decorator 'fix', but seems a bit unsatisfactory as it's just redefining the functionality from the BaseMailer.
Thanks for submitting a more complete fix. I'll try it out when I get the chance over the nest day or so, but I need to get a store finished first!
Hi,
I am getting a "undefined local variable or method `from_address' for #Spree::UserMailer" error when I try to send password resets from spree_auth_devise in my Spree application.
I have the following gems defined in my Gemfile:
Looking at the implementation in Spree:UserMailer, it would seem that the Spree::BaseMailer isn't available to the UserMailer when the UserMailer is loaded, but I'm too new to this code base to know where to start looking to fix it.
Any suggestions for fixing it?
Thanks,
Neill
The text was updated successfully, but these errors were encountered: