You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
When sent via mailgun the following error is given:
AttributeError("'int' object has no attribute 'lower'",)
Traceback (most recent call last):
File "/opt/python/run/venv/local/lib/python2.7/site-packages/django/core/mail/message.py
", line 303, in send
return self.get_connection(fail_silently).send_messages([self])
File "/opt/python/run/venv/local/lib/python2.7/site-packages/django_mailgun.py", line 16
8, in send_messages
if self._send(message):
File "/opt/python/run/venv/local/lib/python2.7/site-packages/django_mailgun.py", line 13
7, in _send
post_data.append(('attachment', (attachment[0], attachment[1],)))
File "/usr/lib64/python2.7/email/message.py", line 294, in __getitem__
return self.get(name)
File "/usr/lib64/python2.7/email/message.py", line 360, in get
name = name.lower()
AttributeError: 'int' object has no attribute 'lower'
The Django attach() API accepts both MIMEBase parameters as well as (filename, content, mimetype) triplets and it seems django-mailgun doesn't support the former.
The text was updated successfully, but these errors were encountered:
An email message with alternative is built like so:
When sent via mailgun the following error is given:
The Django
attach()
API accepts both MIMEBase parameters as well as(filename, content, mimetype)
triplets and it seems django-mailgun doesn't support the former.The text was updated successfully, but these errors were encountered: