summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/unicode.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/ref/unicode.txt b/docs/ref/unicode.txt
index 08f738c879..1286dcfdd0 100644
--- a/docs/ref/unicode.txt
+++ b/docs/ref/unicode.txt
@@ -322,7 +322,9 @@ can be non-ASCII::
sender = u'Arnbjörg Ráðormsdóttir <arnbjorg@example.com>'
recipients = ['Fred <fred@example.com']
body = u'...'
- EmailMessage(subject, body, sender, recipients).send()
+ msg = EmailMessage(subject, body, sender, recipients)
+ msg.attach(u"Une pièce jointe.pdf", "%PDF-1.4.%...", mimetype="application/pdf")
+ msg.send()
Form submission
===============