#32806: Send email with a content_type=text/* attachment
-----------------------------------+--------------------------------------
     Reporter:  Christos Georgiou  |                    Owner:  nobody
         Type:  Bug                |                   Status:  closed
    Component:  Core (Mail)        |                  Version:  3.2
     Severity:  Normal             |               Resolution:  invalid
     Keywords:  sendgrid-django    |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

 * keywords:  text attachment => sendgrid-django
 * status:  new => closed
 * resolution:   => invalid
 * type:  Uncategorized => Bug


Comment:

 I cannot reproduce this issue with built-in backends, e.g.
 {{{
 >>> from django.core.mail import EmailMessage
 >>> e = EmailMessage('subject', 'the body', '[email protected]',
 ['[email protected]'])
 >>> e.attach('attachment.csv', 'flda,fldb\nvala,valb\n', 'text/csv')
 >>> e.send()
 Content-Type: multipart/mixed;
 boundary="===============7549085999326566442=="
 ....
 >>> e = EmailMessage('subject', 'the body', '[email protected]',
 ['[email protected]'])
 >>> e.attach('attachment.csv', b'flda,fldb\nvala,valb\n', 'text/csv')
 >>> e.send()
 Content-Type: multipart/mixed;
 boundary="===============2053797502762006814=="
 ....
 }}}
 Also `sendgrid-django` doesn't support [https://github.com/elbuo8
 /sendgrid-
 django/blob/aeb46bd06185b801592f276ebec8f47c7bd75b42/.travis.yml#L10-L15
 Django 3.1+], you should report this issue on their bugtracker.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32806#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.fb1f2ff2b0d4b278076be4a8dbf06c9f%40djangoproject.com.

Reply via email to