Skip to content Skip to sidebar Skip to footer

Image Source Attribute Is Getting Encrypted/messed Up In The Html Part While Trying To Send An Email Using Python Smtplib

I'm trying to send an email using python and smtplib. Here's the code i'm currently using: import smtplib from email.message import EmailMessage msg = EmailMessage() msg['Sub

Solution 1:

Ok after kicking it around I saw different people using different versions of the sharable url provided by google drive. It seems to me that people are using inconsistent patterns to get the google drive's link to work! There are different solutions to get google drive to work but they're all either obsolete or inconsistent.

SO I SIMPLY QUIT USING GOOGLE DRIVE SOLUTION!

For future reference, here's what I've done as a work around:

I uploaded all of those images to my website server and simply used their links as the source attributes of the html image tag and they work perfectly fine across all of the standard email clients.

So instead of using google drive links I used my own website links on a remote server and they worked!

<img src="https://myownwebsite.com/path/to/images/logo.png" id="logo-image" height="80px" width="80px">  

Post a Comment for "Image Source Attribute Is Getting Encrypted/messed Up In The Html Part While Trying To Send An Email Using Python Smtplib"