Thanks.  That is the outline of what I want to do; what I need now is
specifics: how to create the document and pass it successfully (MIME,
etc) to the attach method.

On Dec 3, 12:59 am, Thomas Guettler <[EMAIL PROTECTED]> wrote:
> Epinephrine schrieb:> Does anyone have a code sample that shows how to create 
> apdfdocument
> > and then, without saving that document to disk,emailit as an
> > attachment?
>
> > I am using the ReportLabPDFlibrary at the platypus level forpdf
> > creation.
>
> > For emailing, I expect to use Django's EmailMessage class.
>
> Hi,
>
> looking at the source:
>
> django/core/mail.py:
>
>     def attach(self, filename=None, content=None, mimetype=None):
>         """
>         Attaches a file with the given filename and content. The
> filename can
>         be omitted (useful for multipart/alternative messages) and the
> mimetype
>         is guessed, if not provided.
>
>         If the first parameter is a MIMEBase subclass it is inserted
> directly
>         into the resulting message attachments.
>         """
>
> --
> Thomas Guettler,http://www.thomas-guettler.de/
> E-Mail: guettli (*) thomas-guettler + de
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to