Explorar o código

Fixed docs for EmailMessage extra_headers attribute

The EmailMessage documentation describes the initialization parameters
and states they 'can be set at any time prior to calling the send()
method.'. However, the 'headers' parameter's corresponding attribute is
called 'extra_headers'.
Tom Scholl %!s(int64=11) %!d(string=hai) anos
pai
achega
cab72a439b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/topics/email.txt

+ 1 - 1
docs/topics/email.txt

@@ -267,7 +267,7 @@ All parameters are optional and can be set at any time prior to calling the
 * ``headers``: A dictionary of extra headers to put on the message. The
   keys are the header name, values are the header values. It's up to the
   caller to ensure header names and values are in the correct format for
-  an email message.
+  an email message. The corresponding attribute is ``extra_headers``.
 
 * ``cc``: A list or tuple of recipient addresses used in the "Cc" header
   when sending the email.