#27465: Simpler API for EmailMessage(attach=[...])
------------------------------------------+------------------------
               Reporter:  Thomas Güttler  |          Owner:  nobody
                   Type:  Uncategorized   |         Status:  new
              Component:  Uncategorized   |        Version:  1.10
               Severity:  Normal          |       Keywords:
           Triage Stage:  Unreviewed      |      Has patch:  0
    Needs documentation:  0               |    Needs tests:  0
Patch needs improvement:  0               |  Easy pickings:  0
                  UI/UX:  0               |
------------------------------------------+------------------------
 From the docs: https://docs.djangoproject.com/en/dev/topics/email
 /#emailmessage-objects

 The constructor of EmailMessage takes this as parameter `attachments`

 > attachments: A list of attachments to put on the message.
 > These can be either email.MIMEBase.MIMEBase instances, or (filename,
 content, mimetype) triples.

 Thank you for exposing this API, but I think it could be simpler.

 A team mate and I think that it would be nice if you could pass in the
 file name to the file in the file-system: Example /tmp/random123/xyz.pdf

 Maybe optional with a verbose name ('/tmp/random123/xyz.pdf',
 'invoice.pdf')

 Before starting to code, I want to know if patches for this would get
 accepted.

--
Ticket URL: <https://code.djangoproject.com/ticket/27465>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.d4b38209786c556072ff227f0048bc62%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to