Wolfgang Wopperer
2005-Jul-14 13:10 UTC
Salted Login Gen. and Rails 0.13: Confirmation email not sent
Hi all, I''ve installed the Salted Hash Login Generator under Rails 0.13.1 and with a bit of work everything now runs smoothly - except sending confirmation mails: Whenever I submit account information on the Signup page, I get the message "Error creating account: confirmation email not sent" without any further information. I found that something goes wrong when calling UserNotify.deliver_signup(@user, @params[''user''][''password''], url) in the UserController; the signup method in UserNotify gets called, but then Rails seems to choke on something I can''t identify. The email settings are correct, and when I try to debug the ActionMailer base classes, it looks like they don''t even get called. I''m quite a newbie with Rails, so maybe I am missing something important here - but what? Thanks a lot for any ideas on this! Wolfgang
Joseph Hosteny
2005-Jul-14 13:39 UTC
Re: Salted Login Gen. and Rails 0.13: Confirmation email not sent
On Jul 14, 2005, at 9:10 AM, Wolfgang Wopperer wrote:> Hi all, > > I''ve installed the Salted Hash Login Generator under Rails 0.13.1 > and with a > bit of work everything now runs smoothly - except sending confirmation > mails: Whenever I submit account information on the Signup page, I > get the > message "Error creating account: confirmation email not sent" > without any > further information. I found that something goes wrong when calling > > UserNotify.deliver_signup(@user, @params[''user''][''password''], url) > > in the UserController; the signup method in UserNotify gets called, > but then > Rails seems to choke on something I can''t identify. The email > settings are > correct, and when I try to debug the ActionMailer base classes, it > looks > like they don''t even get called. >You can try putting the line "raise" within the rescue clause in the signup method. This will re-raise the excecption, and you''ll get a clear indication (hopefully!) of what is wrong.> I''m quite a newbie with Rails, so maybe I am missing something > important > here - but what? >Perhaps nothing - I haven''t been able to get a chance to update the generator in a while, and it''s due for a rework after 0.13.1.> Thanks a lot for any ideas on this! > > Wolfgang > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >Joseph Hosteny jhosteny-ee4meeAH724@public.gmane.org H: 412.362.8672 C: 412.418.6023
Wolfgang Wopperer
2005-Jul-14 13:55 UTC
AW: Salted Login Gen. and Rails 0.13: Confirmation emailnot sent
> > On Jul 14, 2005, at 9:10 AM, Wolfgang Wopperer wrote: > > > Hi all, > > > > I''ve installed the Salted Hash Login Generator under Rails 0.13.1 > > and with a > > bit of work everything now runs smoothly - except sending confirmation > > mails: Whenever I submit account information on the Signup page, I > > get the > > message "Error creating account: confirmation email not sent" > > without any > > further information. I found that something goes wrong when calling > > > > UserNotify.deliver_signup(@user, @params[''user''][''password''], url) > > > > in the UserController; the signup method in UserNotify gets called, > > but then > > Rails seems to choke on something I can''t identify. The email > > settings are > > correct, and when I try to debug the ActionMailer base classes, it > > looks > > like they don''t even get called. > > > > You can try putting the line "raise" within the rescue clause in the > signup method. This will re-raise the excecption, and you''ll get a > clear indication (hopefully!) of what is wrong. >Thanks a lot! The exception message informed me of a missing template for "signup" - which I could correct by removing the language suffixes from my notification templates (no problem there because the app will be single-language for the time being). Now everything works as expected.> > I''m quite a newbie with Rails, so maybe I am missing something > > important > > here - but what? > > > > Perhaps nothing - I haven''t been able to get a chance to update the > generator in a while, and it''s due for a rework after 0.13.1. > > > Thanks a lot for any ideas on this! > > > > Wolfgang > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > Joseph Hosteny > jhosteny-ee4meeAH724@public.gmane.org > H: 412.362.8672 > C: 412.418.6023 > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Toby Boudreaux
2005-Jul-14 15:04 UTC
Re: AW: Salted Login Gen. and Rails 0.13: Confirmation emailnot sent
This is a problem with the localization extension not being added during the template lookup. The overloaded method posted on the wiki doesn''t "take" for whatever reason. I think it might be a helper scope problem or something? I haven''t had time to look into it beyond getting it working on a dev box. Cheap fixes are to either mod the actionmailer base class to append it, or to name your templates without the "_en" (or whatever). On Jul 14, 2005, at 9:55 AM, Wolfgang Wopperer wrote:>> >> On Jul 14, 2005, at 9:10 AM, Wolfgang Wopperer wrote: >> >> >>> Hi all, >>> >>> I''ve installed the Salted Hash Login Generator under Rails 0.13.1 >>> and with a >>> bit of work everything now runs smoothly - except sending >>> confirmation >>> mails: Whenever I submit account information on the Signup page, I >>> get the >>> message "Error creating account: confirmation email not sent" >>> without any >>> further information. I found that something goes wrong when calling >>> >>> UserNotify.deliver_signup(@user, @params[''user''][''password''], url) >>> >>> in the UserController; the signup method in UserNotify gets called, >>> but then >>> Rails seems to choke on something I can''t identify. The email >>> settings are >>> correct, and when I try to debug the ActionMailer base classes, it >>> looks >>> like they don''t even get called. >>> >>> >> >> You can try putting the line "raise" within the rescue clause in the >> signup method. This will re-raise the excecption, and you''ll get a >> clear indication (hopefully!) of what is wrong. >> >> > > Thanks a lot! The exception message informed me of a missing > template for > "signup" - which I could correct by removing the language suffixes > from my > notification templates (no problem there because the app will be > single-language for the time being). Now everything works as expected. > > > >>> I''m quite a newbie with Rails, so maybe I am missing something >>> important >>> here - but what? >>> >>> >> >> Perhaps nothing - I haven''t been able to get a chance to update the >> generator in a while, and it''s due for a rework after 0.13.1. >> >> >>> Thanks a lot for any ideas on this! >>> >>> Wolfgang >>> >>> _______________________________________________ >>> Rails mailing list >>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >>> >> >> Joseph Hosteny >> jhosteny-ee4meeAH724@public.gmane.org >> H: 412.362.8672 >> C: 412.418.6023 >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >