On Tue, Sep 23, 2008 at 7:38 PM, Berco Beute <[EMAIL PROTECTED]> wrote: > > Currently I'm sending plain text mails using: > > ### > from django.core.mail import EmailMessage > email = EmailMessage('hi', 'howdy', host, to) > email.send() > ### > > But now I want to use HTML in the body of the email. How do I format > such a message and can I just send it like above? >
Yes, or at least in a similar way. You might try reading the documentation: http://docs.djangoproject.com/en/dev/topics/email/#sending-alternative-content-types --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---