Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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' ?

like image 970
Bobby Avatar asked Dec 27 '25 21:12

Bobby


1 Answers

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.

like image 129
Massimo Avatar answered Dec 31 '25 00:12

Massimo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!