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.

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

Send feedback about...