Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imgur embeds cause mail to go to spam #235

Open
qaisjp opened this issue Feb 15, 2019 · 11 comments
Open

Imgur embeds cause mail to go to spam #235

qaisjp opened this issue Feb 15, 2019 · 11 comments
Labels

Comments

@qaisjp
Copy link
Member

qaisjp commented Feb 15, 2019

(apparently)

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

@qaisjp qaisjp added the bug label Feb 15, 2019
@casassg
Copy link
Member

casassg commented Feb 15, 2019

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
Copy link
Member

casassg commented Feb 15, 2019

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

@qaisjp
Copy link
Member Author

qaisjp commented Feb 15, 2019

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.

@faix
Copy link

faix commented Feb 17, 2019

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

@casassg
Copy link
Member

casassg commented Feb 18, 2019

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.

@qaisjp
Copy link
Member Author

qaisjp commented Feb 18, 2019

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

@casassg
Copy link
Member

casassg commented Feb 18, 2019

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

@qaisjp
Copy link
Member Author

qaisjp commented Feb 18, 2019

Btw an easier option would just be to use this commit compsoc-edinburgh@c7449a0 — not sure if image support is worth all the effort

@casassg
Copy link
Member

casassg commented Feb 18, 2019

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
Copy link
Member

casassg commented Feb 18, 2019

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

@qaisjp
Copy link
Member Author

qaisjp commented Feb 18, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants