浏览代码

Added import in docs/topics/email.txt example.

Camilo Nova 9 年之前
父节点
当前提交
a6f856df52
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      docs/topics/email.txt

+ 2 - 0
docs/topics/email.txt

@@ -279,6 +279,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'})