Changeset 5561
- Timestamp:
- 06/30/07 16:03:41 (1 year ago)
- Files:
-
- django/trunk/docs/email.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/email.txt
r5552 r5561 204 204 This is a design feature. ``send_mail()`` and related functions were 205 205 originally the only interface Django provided. However, the list of 206 parameters they accepted was slowly growing over time. It made sense to206 parameters they accepted was slowly growing over time. It made sense to 207 207 move to a more object-oriented design for e-mail messages and retain the 208 208 original functions only for backwards compatibility. … … 214 214 215 215 E-mail messages 216 --------------- -216 --------------- 217 217 218 218 The ``EmailMessage`` class is initialized with the following parameters (in … … 275 275 There are two ways to call ``attach()``: 276 276 277 * You can pass it a single argument whichis an277 * You can pass it a single argument that is an 278 278 ``email.MIMBase.MIMEBase`` instance. This will be inserted directly 279 279 into the resulting message. … … 281 281 * Alternatively, you can pass ``attach()`` three arguments: 282 282 ``filename``, ``content`` and ``mimetype``. ``filename`` is the name 283 of the file attachment as it will appear in the e mail, ``content`` is283 of the file attachment as it will appear in the e-mail, ``content`` is 284 284 the data that will be contained inside the attachment and 285 285 ``mimetype`` is the optional MIME type for the attachment. If you … … 299 299 300 300 Sending alternative content types 301 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~301 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 302 302 303 303 It is often useful to include multiple versions of the content in an e-mail. … … 333 333 334 334 SMTP network connections 335 ------------------------ -335 ------------------------ 336 336 337 337 The ``SMTPConnection`` class is initialized with the host, port, username and
