@@ -35,7 +35,8 @@ Here are the classes:
3535 *_maintype * is the :mailheader: `Content-Type ` major type (e.g. :mimetype: `text `
3636 or :mimetype: `image `), and *_subtype * is the :mailheader: `Content-Type ` minor
3737 type (e.g. :mimetype: `plain ` or :mimetype: `gif `). *_params * is a parameter
38- key/value dictionary and is passed directly to :meth: `Message.add_header `.
38+ key/value dictionary and is passed directly to :meth: `Message.add_header
39+ <email.message.Message.add_header> `.
3940
4041 The :class: `MIMEBase ` class always adds a :mailheader: `Content-Type ` header
4142 (based on *_maintype *, *_subtype *, and *_params *), and a
@@ -50,8 +51,9 @@ Here are the classes:
5051
5152 A subclass of :class: `~email.mime.base.MIMEBase `, this is an intermediate base
5253 class for MIME messages that are not :mimetype: `multipart `. The primary
53- purpose of this class is to prevent the use of the :meth: `attach ` method,
54- which only makes sense for :mimetype: `multipart ` messages. If :meth: `attach `
54+ purpose of this class is to prevent the use of the
55+ :meth: `~email.message.Message.attach ` method, which only makes sense for
56+ :mimetype: `multipart ` messages. If :meth: `~email.message.Message.attach `
5557 is called, a :exc: `~email.errors.MultipartConversionError ` exception is raised.
5658
5759
@@ -74,7 +76,8 @@ Here are the classes:
7476
7577 *_subparts * is a sequence of initial subparts for the payload. It must be
7678 possible to convert this sequence to a list. You can always attach new subparts
77- to the message by using the :meth: `Message.attach ` method.
79+ to the message by using the :meth: `Message.attach
80+ <email.message.Message.attach> ` method.
7881
7982 Additional parameters for the :mailheader: `Content-Type ` header are taken from
8083 the keyword arguments, or passed into the *_params * argument, which is a keyword
@@ -95,8 +98,10 @@ Here are the classes:
9598
9699 Optional *_encoder * is a callable (i.e. function) which will perform the actual
97100 encoding of the data for transport. This callable takes one argument, which is
98- the :class: `MIMEApplication ` instance. It should use :meth: `get_payload ` and
99- :meth: `set_payload ` to change the payload to encoded form. It should also add
101+ the :class: `MIMEApplication ` instance. It should use
102+ :meth: `~email.message.Message.get_payload ` and
103+ :meth: `~email.message.Message.set_payload ` to change the payload to encoded
104+ form. It should also add
100105 any :mailheader: `Content-Transfer-Encoding ` or other headers to the message
101106 object as necessary. The default encoding is base64. See the
102107 :mod: `email.encoders ` module for a list of the built-in encoders.
@@ -121,8 +126,10 @@ Here are the classes:
121126
122127 Optional *_encoder * is a callable (i.e. function) which will perform the actual
123128 encoding of the audio data for transport. This callable takes one argument,
124- which is the :class: `MIMEAudio ` instance. It should use :meth: `get_payload ` and
125- :meth: `set_payload ` to change the payload to encoded form. It should also add
129+ which is the :class: `MIMEAudio ` instance. It should use
130+ :meth: `~email.message.Message.get_payload ` and
131+ :meth: `~email.message.Message.set_payload ` to change the payload to encoded
132+ form. It should also add
126133 any :mailheader: `Content-Transfer-Encoding ` or other headers to the message
127134 object as necessary. The default encoding is base64. See the
128135 :mod: `email.encoders ` module for a list of the built-in encoders.
@@ -147,8 +154,10 @@ Here are the classes:
147154
148155 Optional *_encoder * is a callable (i.e. function) which will perform the actual
149156 encoding of the image data for transport. This callable takes one argument,
150- which is the :class: `MIMEImage ` instance. It should use :meth: `get_payload ` and
151- :meth: `set_payload ` to change the payload to encoded form. It should also add
157+ which is the :class: `MIMEImage ` instance. It should use
158+ :meth: `~email.message.Message.get_payload ` and
159+ :meth: `~email.message.Message.set_payload ` to change the payload to encoded
160+ form. It should also add
152161 any :mailheader: `Content-Transfer-Encoding ` or other headers to the message
153162 object as necessary. The default encoding is base64. See the
154163 :mod: `email.encoders ` module for a list of the built-in encoders.
0 commit comments