Web2py - 使用 Gmail 地址
我是 web2py 的初学者。我刚刚创建了一个新项目。
我想使用 Gmail 地址,例如 [电子邮件受保护]。我需要修改什么?
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
这样可以吗? 'logging'
的目的是什么?
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'
?
应该
设置 mail.settings.server = 'logging' 具有记录到控制台发送电子邮件的请求的效果,但不发送电子邮件。它对于调试电子邮件问题很有用。
Should be
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.