Bobby
Bobby

Reputation: 31

Web2py - Using a Gmail address

I am beginner with web2py. I have just created a new project.

I want to use a gmail address, let's say [email protected]. What do I need to modify ?

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

Is this OK ? What is the purpose of 'logging' ?

Upvotes: 3

Views: 1491

Answers (1)

Massimo
Massimo

Reputation: 1653

Should be

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

Setting mail.settings.server = 'logging' has the effects of logging to console requests for sending emails but does not send the emails. It is useful for debugging email problems.

Upvotes: 4

Related Questions