thank you Jim I will give it a try I will let you know Am Mo., 14. Nov. 2022 um 22:20 Uhr schrieb Jim Steil <ato.st...@gmail.com>:
> Here is what google wants for smtp settings: > > [image: image.png] > > For web2py you need to set > > server = "smtp.gmail.com:465" # assuming you're using ssl > sender = "your_email_address" > login = "username:password" # where password is a gmail app password, > assuming you have 2FA enabled on your gmail account > ssl = True > tls = False > > If you choose to use TLS, then change the port and set tls to True > > Hope this helps > > -Jim > > > > On Fri, Nov 11, 2022 at 10:34 PM Silvian Cedru <silvian.ce...@gmail.com> > wrote: > >> 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 a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/web2py/m4WKnUUEde0/unsubscribe. >> To unsubscribe from this group and all its topics, 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 >> <https://groups.google.com/d/msgid/web2py/CABLX3EGAYWs6HzC2ih46_QL%3DZRyDyXNqB%3DPT1b5Y_nPXbJVd1g%40mail.gmail.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/CAERBpoC8ZXFk8xWU74--PyLEsDVaAWQoiwEyi91ZgMf9khXd1Q%40mail.gmail.com > <https://groups.google.com/d/msgid/web2py/CAERBpoC8ZXFk8xWU74--PyLEsDVaAWQoiwEyi91ZgMf9khXd1Q%40mail.gmail.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/CABLX3EHWuVbr4P1cRhZKjpvgi479qULH%3D3i5WN%2B8RRfGoipm5g%40mail.gmail.com.