| 163 | self.send_mail(subject, message, html_message=html_message) |
| 164 | |
| 165 | def send_mail(self, subject, message, *args, **kwargs): |
| 166 | # RemovedInDjango70Warning. |
| 167 | if not mail.mailers._is_configured: |
| 168 | connection = mail.get_connection( |
| 169 | backend=self.email_backend, fail_silently=True |
| 170 | ) |
| 171 | mail.mail_admins(subject, message, *args, connection=connection, **kwargs) |
| 172 | return |
| 173 | |
| 174 | try: |
| 175 | mail.mail_admins(subject, message, *args, using=self.using, **kwargs) |
| 176 | except mail.MailerDoesNotExist: |
| 177 | pass |
| 178 | |
| 179 | def format_subject(self, subject): |
| 180 | """ |