Web2py - Using a Gmail Address

I start with web2py. I just created a new project.

I want to use the gmail address, say g@gmail.com. What do i need to change?

mail.settings.server = 'logging' or 'smtp.gmail.com:587'  # your SMTP server
mail.settings.sender = 'g@gmail.com'         # your email
mail.settings.login = 'g@gmail.com:mypassword'      # your credentials or None

This is normal? What is the purpose 'logging'?

+3
source share
1 answer

Must be

mail.settings.server = 'smtp.gmail.com:587' 

Setting mail.settings.server = 'logging' has the consequences of logging into the console for requests to send emails, but it does not send emails. This is useful for debugging email issues.

+4
source

All Articles