#9367: EmailMultiAlternatives does not properly attach (PDF) files.
------------------------------------+---------------------------------------
          Reporter:  loekje         |         Owner:  nobody
            Status:  new            |     Milestone:        
         Component:  Uncategorized  |       Version:  1.0   
        Resolution:                 |      Keywords:        
             Stage:  Unreviewed     |     Has_patch:  0     
        Needs_docs:  0              |   Needs_tests:  0     
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by loekje):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Just to be clear on what the result is of the following code for the
 EmailMultiAlternatives implementation in Django 1.0 when invoking the
 following code:

 {{{
 subject, from_email, to = 'hello', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]'
 text_content = 'This is an important message.'
 html_content = '<p>This is an <strong>important</strong> message.</p>'
 msg = EmailMultiAlternatives(subject, text_content, from_email, [to])
 msg.attach_alternative(html_content, "text/html")
 msg.attach_file('/tmp/file.pdf')
 msg.send()
 }}}

 A message will be sent, with the two views (typically the HTML view will
 show up in the email client) and the file.pdf attachment is included in
 the email. However, it cannot be opened in email client because it does
 not show any attachments (and why should the email client, it is supposed
 to be an alternative view...)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9367#comment:1>
Django <http://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 post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to