Re: Embed an image in email Django

2019-12-17 Thread Giovanni Natale
The problem with that is that the url of the image does not contain the domain of your website. This is ok when you are using a browser to render a webpage but there is no way for an email client to understand the domain of the url if you do not include it explicitly. So, the image url should

Embed an image in email Django

2019-12-17 Thread Santhosh sridhar
Hi, I am using Django's EmailMessage module to trigger an email with embedded image from the static directory path. Somehow the image is not rendering properly in the triggered email. Please find the below code and appreciating your help. Thanks, Santhosh *Code:* recipient_list = ['a...@gm

Embed an image in email Django

2019-12-17 Thread Santhosh sridhar
Hi, I am using Django's Email message module to trigger an email with an embed image from my static folder. Could someone help? Below is the code that I have used. Code : recipient_list = ['a...@gmail.com'] from_email = 'a...@gmail.com' message = '' path = "{% static 'images/Wel