Django Book 翻译
菜单>:
TOC
返回
原文:
Djangos built-in mail functions (in ``django.core.mail`` ) simply do not allow newlines in any fields used to construct headers (the from and to addresses, plus the subject). If you try to use ``django.core.mail.send_mail`` with a subject that contains newlines, Django will raise a ``BadHeaderError`` exception.
翻译:
Django内建邮件功能(在 ``django.core.mail`` 中)根本不允许在用来构建邮件头部的字段中存在换行符(表单,to地址,还有主题)。如果您试图使用 ``django.core.mail.send_mail`` 来处理包含换行符的主题时,Django将会抛出BadHeaderError异常。
备注:
译者: