I'm sending an email using the SMTP protocol in Django. When I send the image link it is like this:
https://example.com/images/pic1.jpg
But Gmail converts it to something like this:
https://ci5.googleusercontent.com/proxy/vI79kajdUGm6Wk-fjyicDLjZbCB1w9NfkoZ-zQFOB2OpJ1ILmSvfvHmE56r72us5mIuIXCFiO3V8rgkZOjfhghTH0R07BbcQy5g=s0-d-e1-ft#https://example.com/images/pic1.jpg
I tried the image URL proxy whitelist setting. It is showing the preview of the image.But image links are not working.
PS: I have also tried methods suggested here to no avail.
Update 1:
The images are stored in the AWS s3 bucket. If I make them public then they work fine. But I can't make them public.Is there any other way?
question from:
https://stackoverflow.com/questions/65880689/gmails-broken-image-links-when-sending-mails-through-django 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…