Epinephrine schrieb: > Does anyone have a code sample that shows how to create a pdf document > and then, without saving that document to disk, email it as an > attachment? > > I am using the ReportLab PDF library at the platypus level for pdf > 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 django-users@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-users?hl=en -~----------~----~----~----~------~----~------~--~---