diff --git a/docs/topics/email.txt b/docs/topics/email.txt
index b44ab35..ef914d3 100644
a
|
b
|
send out, you could send this with::
|
350 | 350 | connection = SMTPConnection() # Use default settings for connection |
351 | 351 | messages = get_notification_email() |
352 | 352 | connection.send_messages(messages) |
| 353 | |
| 354 | Preventing or testing e-mails |
| 355 | ----------------------------- |
| 356 | |
| 357 | The are times when you do not want Django to send e-mails at all, i.e. |
| 358 | during development, or you would like to quickly test e-mail generation |
| 359 | and output. The least intrusive way to do so is to use a "dumb" e-mail |
| 360 | server that receives the e-mails locally and displays them, but does not |
| 361 | actually send anything. |
| 362 | |
| 363 | Python has a built-in way to accomplish this with a single command:: |
| 364 | |
| 365 | python -m smtpd -n -c DebuggingServer localhost:1025 |
| 366 | |
| 367 | This command will start a simple SMTP server listening on port 1025 of |
| 368 | localhost. This server simply prints to standard output all email |
| 369 | headers and the email body. You then only need to set the |
| 370 | :setting:`EMAIL_HOST` and :setting:`EMAIL_PORT` accordingly, and you are |
| 371 | set. |
| 372 | |
| 373 | For more entailed testing and processing of e-mails locally, see the |
| 374 | Python documentation on the `SMTP Server`_. |
| 375 | |
| 376 | .. _SMTP Server: http://docs.python.org/library/smtpd.html |