我想通过smtp邮件服务器发送带有html模板中的图像和文本的消息,该怎么做
这是我的html模板,
{% autoescape off %}
Hi {{ user.username }},
To initiate the registration process for your {{ user.email }} LoremIpsum Account, click the link below:
http://{{ domain }}{% url 'activate' uidb64=uid token=token %}
If clicking the link above doesn't work, please copy and paste the URL in a new browser window instead. If you did not requested a confirmation mail, then ignore this email.
Regards,
The LoremIpsum Development Team
{% endautoescape %}