... るメールの文字セットは、 DEFAULT_CHARSET 設定の値にセットされます。 send_mail() send_mail ( subject , message , from_email , recipient_list , * , fail_silently = False , auth_user = None , auth_password = None , connection = None , html_message = None ) [ソ ... ース] django.core.mail.send_mail() sends a single email message. subject 、 message 、 from_email 、 recipient_list の 4 つの引数は必須です。 subject : 文字列。 message : 文字列。 from_email : 文字列。もし None なら、 Django は DEFAU ... LT_FROM_EMAIL 設定の値を使います。 recipient_list : メールアドレスを表す文字列のリスト。 recipient_list の各メンバーは、メールメッセージの "To:" フィールドで他の受信者 ... ... email_users ( emails , subject , message ): return send_mail ( subject = subject , message = message , from_email = None , recipient_list = emails ) The return value of the decorator is a Task instance. Task attributes can be customized via the @task deco ... email_users ( emails , subject , message ): return send_mail ( subject = subject , message = message , from_email = None , recipient_list = emails ) By convention, Tasks are defined in a tasks.py file, however this is not enforced. Task context Sometimes, ... ult id: { context . task_result . id } ." ) return send_mail ( subject = subject , message = message , from_email = None , recipient_list = emails ) Modifying Tasks Before enqueueing Tasks, it may be necessary to modify certain parameters of the Task. For ... ... implementation). To ignore end user typos in to addresses and other delivery problems, remove the fail_silently argument. Recipient errors are not generally detected at send time, so using fail_silently for this purpose doesn't accomplish anything and co ... uld mask other problems like configuration errors. (In local delivery configurations, SMTP servers may report some recipient errors at send time. If you are using fail_silently specifically to ignore those errors, consider instead intercepting SMT ... PRecipientsRefused and/or SMTPResponseException s with particular smtp_code values as a more precise filter.) To create an email conf ... ... eady supported. Also, filters may now be used in the if expression. For example: < div {% if user.email | lower == message.recipient | lower %} class = "highlight" {% endif %} > {{ message }} </ div > Template caching In previous versions of Django, every ... ... endtestemail foo@example.com bar@example.com The following options may be used in any combination with each other and with recipient email arguments. --using ALIAS New in Django 6.1. Specifies the MAILERS alias to use for sending the test email to the rec ... 2026年10月08日