Changes between Initial Version and Version 1 of Ticket #32806


Ignore:
Timestamp:
Jun 1, 2021, 9:43:23 AM (3 years ago)
Author:
Christos Georgiou
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32806 – Description

    initial v1  
    1 Python 3.8, Django 3.2.3
     1Python 3.8.5, Django 3.2.3
    22{{{
    33from django.core.mail import EmailMessage
     
    2222}}}
    2323
    24 because …/lib/python3.8/site-packages/django/core/mail/message.py on attach does:
     24because `…/lib/python3.8/site-packages/django/core/mail/message.py` on `attach` does:
    2525
    2626{{{
     
    3939Why decode it if a Py3 string can't be b64encoded?  I think that actually it should be *encoded* as bytes if already str using the DEFAULT_CHARSET before appending the tuple to self.attachments.
    4040
    41 If I .attach(name, bytes_object, 'application/csv') then the send operation works fine.
     41If I `.attach(name, bytes_object, 'application/csv')` then the send operation works fine.
    4242
    4343(I'm open to the possibility that I miss something and this is not a bug :) )
Back to Top