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
Images in emails are not responsive in Gmail #1393
Comments
|
Thanks for the detailed issue! |
|
From what I can tell the email is just the comment in its raw form. Which on the website is styled the CSS but it's not inline so doesn't make it to the email. |
|
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue in 7 days. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If this issue still requires attention, please respond with a comment. Happy Coding! |
|
I think this is still an issue. |
|
i will like to work on this |
|
@Shorpee go for it! |
|
Hi, is this issue still need help? |
|
@luchiago if you want we can test it together: you need to leave a comment and I can reply to it with an image. You have to have email notifications enabled first of course. Let me know if you're willing to do this experiment. We can use one of my articles or yours so not to disturb others |
|
Replied with this https://dev.to/rhymes/comment/khga |
|
We do still have a problem. I'll work on that @rhymes |
|
Thank you! |
|
@rhymes How can I test this locally? |
|
@luchiago not easily as development is not configured to deliver emails. We do use the following configuration in production: I think that if you want to test actual emails you'd have to subscribe to the free tier on Sendgrid - https://sendgrid.com/pricing/ - and copy such configuration in |
|
Actually @luchiago , you can preview emails. Check out the doc at https://docs.dev.to/backend/previewing-emails/. What you have to do is respond to a comment on your local setup and make sure your background job is running (your Redis instance) then head to the email preview link and you should see it. |
|
@maestromac Thanks for the tip. But I think shouldn't work when I reply to my own post. I've already made the changes but I can't test. |
|
@luchiago Try making a comment to any post. The preview page will show the latest comment that was emailed out. |
@maestromac But the mail notification, in this case, is when somebody replies my post with an image and I receive the notification in my mail box |
|
@luchiago Oh I see now. try this.
|
|
@maestromac @rhymes I'm not able to upload an image in the reply comment. All the tools are up (elastic, sidekiq, redis) and I have ImageMagick installed. Any ideas? |
|
@luchiago Hmm i'm not too sure. Have you tried using an image from elsewhere? Does that work for you? |
Without uploading? |
|
@luchiago yup, because this bug can happen with any large images, or so I assume. |

Describe the bug
Images in comment notification emails can be large and not display in a scaled manor.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect that the image would be no wider than the width of the displayed email.
Screenshots
Desktop (please complete the following information):
Additional context
The particular comment I was notified about: https://dev.to/rhymes/comment/7kna
Potential solutions: https://stackoverflow.com/questions/10711638/how-to-dynamically-resize-an-image-inside-an-email-client
The text was updated successfully, but these errors were encountered: