Bearle/django_mail_admin

get_new_mail command 'TypeError'

Opened this issue · 0 comments

  • django mail admin version: 0.3.2
  • Django version: 5.0.8
  • Python version: 3.11
  • Operating System: MacOS

Description

Setup MailBox with my username and app password. Run get_new_mail command in terminal.

What I Did

python manage.py get_new_mail

Connection established but got the error with file content.

Solution

ContentFile(message.as_string())
replace with
ContentFile(message.as_bytes())
Screenshot 2024-08-13 at 23 19 25