[1.9.x] Added import in docs/topics/email.txt example.

Backport of a6f856df52 from master
This commit is contained in:
Camilo Nova 2016-02-12 11:27:23 -05:00 committed by Tim Graham
parent 765f6d8041
commit 2b28a21232
1 changed files with 2 additions and 0 deletions

View File

@ -283,6 +283,8 @@ All parameters are optional and can be set at any time prior to calling the
For example:: For example::
from django.core.mail import EmailMessage
email = EmailMessage('Hello', 'Body goes here', 'from@example.com', email = EmailMessage('Hello', 'Body goes here', 'from@example.com',
['to1@example.com', 'to2@example.com'], ['bcc@example.com'], ['to1@example.com', 'to2@example.com'], ['bcc@example.com'],
reply_to=['another@example.com'], headers={'Message-ID': 'foo'}) reply_to=['another@example.com'], headers={'Message-ID': 'foo'})