Yeah that is what I tried to do but I am not really sure where I enter all the details I got the smtp IP from my own mailserver but I am not really sure where I need to pass the username and data trough do you have any idea ?
Am Fr., 11. Nov. 2022 um 22:27 Uhr schrieb Jim S <ato.st...@gmail.com>: > Are you passing a password to the mail server? > > When I've set these up with gmail, I've needed an app-specific password to > pass to it. > > -Jim > > On Thursday, November 10, 2022 at 11:52:34 PM UTC-6 silvia...@gmail.com > wrote: > >> Hello everyone, >> >> I want to reset password in my application if someone forgets it but it >> does not seem to work I dont get how to setup the mail server below are my >> two models I dont know what I need to configure that it works. >> >> >> #Email Server Configuration >> models/db.py >> >> mail = auth.settings.mailer >> mail.settings.server = 'logging' or 'smtp.gmail.com:587' >> mail.settings.sender = 'si****@gmail.com' >> mail.settings.login = True >> >> >> apllication/applicationname/models/db.py >> >> # configure email >> # >> ------------------------------------------------------------------------- >> mail = auth.settings.mailer >> mail.settings.server = 'logging' if request.is_local else >> configuration.get('smtp.server') >> mail.settings.sender = configuration.get('smtp.sender') >> mail.settings.login = configuration.get('smtp.login') >> mail.settings.tls = configuration.get('smtp.tls') or False >> mail.settings.ssl = configuration.get('smtp.ssl') or False >> >> >> >> >> -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/e0a0c560-c1c7-4d3e-b1c7-c0879a2c0c7dn%40googlegroups.com > <https://groups.google.com/d/msgid/web2py/e0a0c560-c1c7-4d3e-b1c7-c0879a2c0c7dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CABLX3EGAYWs6HzC2ih46_QL%3DZRyDyXNqB%3DPT1b5Y_nPXbJVd1g%40mail.gmail.com.