Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (23 sloc) 985 Bytes
layout title
Sending mail using gmail

Sending mail using gmail

Other languages: français | ...


How to send mail using gmail.


Often it is tedious to setup and maintain a mail server. If you have a gmail accout, you can use gmail as SMTP server to send mail. To do that we need to specify username and password of gmail account in web.config.

web.config.smtp_server = ''
web.config.smtp_port = 587
web.config.smtp_username = ''
web.config.smtp_password = 'secret'
web.config.smtp_starttls = True

Once this configuration is set, web.sendmail can be used to send mail using the gmail account. Gmail signs all these mails.

web.sendmail('', '', 'subject', 'message')

Read GMail: Configuring other mail clients for more details.

Jump to Line
Something went wrong with that request. Please try again.