summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/email.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/topics/email.txt b/docs/topics/email.txt
index ffdc1e41cf..bd546ae990 100644
--- a/docs/topics/email.txt
+++ b/docs/topics/email.txt
@@ -283,6 +283,8 @@ All parameters are optional and can be set at any time prior to calling the
For example::
+ from django.core.mail import EmailMessage
+
email = EmailMessage('Hello', 'Body goes here', 'from@example.com',
['to1@example.com', 'to2@example.com'], ['bcc@example.com'],
reply_to=['another@example.com'], headers={'Message-ID': 'foo'})