Gmail Blocking Small Embedded Inline Images in Email Template

Base64 images to gmail in Delphi

At first i thought the issue is this : PCFET0NUWVBFIGh0bWwgUFVCTElDICItL
since it does not look like base64 code of png which starts with iVBOR.

But the issue was here : Content-ID: qrcode.png

When setting Content-ID you have to be carefull since in some versions simply setting it with quotation marks is not enough and you have to set it with adding <> like so : Content-ID: <qrcode.png>.

With this the result was as wanted.

Email template variable, image src attribute issue with gmail (in Django)

i think you don't need a docstring and just use a double-quoted string

refer to this thread about when to use docstrings https://writing.stackexchange.com/questions/33489/when-documenting-python-when-should-i-use-docstrings-and-when-should-i-use-comm

change your function

output = '''https://**************/{}-bottle-img.png'''.format(self.number_of_bottles

to

output = "https://**************/{}-bottle-img.png".format(self.number_of_bottles

let me know if this solves you issue with super-flue blanc characters



Related Topics



Leave a reply



Submit