There is this code in gluon/tools.py
if self.settings.mailer:
user[form.vars.id] = dict(registration_key=key)
if not self.settings.mailer.send(to=form.vars.email,
subject=self.messages.verify_email_subject,
message=self.messages.verify_email
% dict(key=key)):
self.db.rollback()
session.flash = self.messages.invalid_email
return form
session.flash = self.messages.email_sent
else:
session.flash = self.messages.registration_successful
try add some print statements to see what is going on.
Massimo
On 26 Apr, 12:00, Alexei Vinidiktov <[email protected]>
wrote:
> Thanks for your input, Massimo.
>
> It's got to be it. If I deliberately change the smtp info on my local
> server to be incorrect, the app behaves the same as on the remote
> server.
>
> I've tried to send an email from the python shell at the remote server
> via ssh and it worked fine.
>
> What can I do to investigate the issue further?
>
> Thanks.
>
>
>
> On Sun, Apr 26, 2009 at 11:08 PM, mdipierro <[email protected]> wrote:
>
> > I think the problem is that there is a failure to send the
> > confirmation email. It is either the remote server not accepting the
> > smtp connection or, if you are using a third party smtp server, cold
> > be a firewall issue.
>
> > Massimo
>
> > On Apr 25, 11:52 pm, Alexei Vinidiktov <[email protected]>
> > wrote:
> >> On Sun, Apr 26, 2009 at 12:45 PM, Alexei Vinidiktov
>
> >> <[email protected]> wrote:
> >> > On Sat, Apr 25, 2009 at 6:32 PM, Alexei Vinidiktov
> >> > <[email protected]> wrote:
> >> >> On Sat, Apr 25, 2009 at 2:30 PM, Alexei Vinidiktov
> >> >> <[email protected]> wrote:
> >> >>> Hello,
>
> >> >>> I'm beginning to learn user authentication. I've implemented a very
> >> >>> basic authentication using the Auth module that works fine on my local
> >> >>> machine: I can register a user, a confirmation email is sent out, the
> >> >>> user can confirm his email, login and logout.
>
> >> >>> I copied the app to a remote server and tried to register a user, but
> >> >>> after I entered all the user information and hit Submit I got
> >> >>> redirected back to the registration page and no email was sent to the
> >> >>> user being registered, no ticket was generated either.
>
> >> >>> I'd appreciate any clues.
>
> >> >>> I'm using web2py 1.59. My local machine is a WinXP box, the remote
> >> >>> server is on a Linux distro.
>
> >> >> Additional info:
>
> >> >> After my unsuccessful attempt to register I was redirected to the same
> >> >> registration page (which is just a scaffold provided by web2py) and
> >> >> then I looked at the session info by clicking on the corresponding
> >> >> button and it said "auth : None, flash : Invalid email", but no flash
> >> >> was shown to the user (i.e. to me). I tried different email, but
> >> >> always got the same flash : invalid email in the session info.
>
> >> > I've updated my web2py installation on the remote server to the latest
> >> > version, but it didn't help.
>
> >> > Do you have any guesses at all as to what may be happening?
>
> >> Another piece of information.
>
> >> Logging in and logging out both do seem to work on the remote server,
> >> only registration of new users doesn't work.
>
> >> --
> >> Alexei Vinidiktov
>
> --
> Alexei Vinidiktov
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---