[1.8.x] Added import in docs/topics/email.txt example.
Backport of a6f856df52d532d5537191eca237de6efdffe309 from master
This commit is contained in:
parent
3af5643d82
commit
b9105e7dea
@ -287,6 +287,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'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user