Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



Headers

An email message can include headers. The headers field of an email message accepts a dictionary describing the headers. Each key:value pair of the dictionary corresponds to a header, where the key is the header name, and the value is the value of the header, as a string.

from google.appengine.api import mail

mail.send_mail(sender="[email protected]",
               to="Albert Johnson <[email protected]>",
               subject="An example email",
               body="""
The email references a given email thread id.

The example.com Team
""",
               headers={"References": email_thread_id})

Only certain header names are allowed. For more information, see Sending Mail with Headers .

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.