registration icon indicating copy to clipboard operation
registration copied to clipboard

Imgur embeds cause mail to go to spam

Open qaisjp opened this issue 6 years ago • 11 comments

(apparently)

We should embed these as an attachment and use it, as per this page

qaisjp avatar Feb 15 '19 14:02 qaisjp

The other option is to host them statically in GitHub pages? We need to make sure that base64 get loaded correctly on all email clients.

casassg avatar Feb 15 '19 17:02 casassg

Found this: https://djangosnippets.org/snippets/285/

casassg avatar Feb 15 '19 17:02 casassg

The other option is hosting the static files on my.hackwhatever.tld but I still think attaching the image is safer. I think GitHub pages will still send it to spam because the sender domain != Image domain.

qaisjp avatar Feb 15 '19 21:02 qaisjp

What about hosting it in aws with S3 and using it as a cdn?

faix avatar Feb 17 '19 15:02 faix

I feel the best option is going to host it on the same server as static files. May be difficult to debug on local, so maybe we can use imgur as a fallback when DEBUG mode is on. Keeping them on the project makes it more manageable and reduces the chances of getting into SPAM as it will be from the same domain.

casassg avatar Feb 18 '19 18:02 casassg

that has the same issue of hosting images on a foreign domain.

qaisjp avatar Feb 18 '19 18:02 qaisjp

Fair. Then we need to explore: https://djangosnippets.org/snippets/285/

casassg avatar Feb 18 '19 18:02 casassg

Btw an easier option would just be to use this commit https://github.com/compsoc-edinburgh/hackassistant-registration/commit/c7449a071498b4b23698855c95680c2ec0aaafce — not sure if image support is worth all the effort

qaisjp avatar Feb 18 '19 19:02 qaisjp

Problem with Base64 links is that Outlook blocks it. Will check locally. Interesting article about different alternatives: https://sendgrid.com/blog/embedding-images-emails-facts/

casassg avatar Feb 18 '19 19:02 casassg

Just tested. Images don't work correctly on GMail for Android/Web. Will try to do the attachment ones as suggested before.

casassg avatar Feb 18 '19 19:02 casassg

Yup, I initially tried base64 and encountered the same issue with Gmail

qaisjp avatar Feb 18 '19 21:02 qaisjp