creating a MIME email template with images to send with python / django
问题 In my web application I send emails occasionally using a reusable mailer application like this: user - self.user subject = ("My subject") from = "me@mydomain.com" message = render_to_string("welcomeEmail/welcome.eml", { "user" : user, }) send_mail(subject, message, from, [email], priority="high" ) I want to send an email with embedded images in it, so I tried making the mail in a mail client, viewing the source, and putting it into my template (welcome.eml), but I've been unable to get it to