Issue #2361💬 AnsweredOpened October 30, 2019by timkelly08101 reactions

Images don't display over email

快速解答by artf1

https://github.com/artf/grapesjs/blob/dev/src/asset_manager/config/config.js#L77

Read full answer below ↓

Question

My team and I used grapesjs to create email templates and are storing them in an AWS S3 bucket. We have successfully sent an email through our web application, however, images fail to display. After clicking "view original", I can see that the image src displays properly, but the actual image doesn't display. We believe it may have something to do with the base64 encoding. Is there any reason why images within a template wouldn't display when sending to a popular email service such as Gmail?

Answers (3)

artfOctober 31, 2019

From what you said it might be also because you simply didn't enable to view images in that email... Anyway, this has nothing to do with GrapesJS itself so there is no reason to keep this issue open.

timkelly0810October 31, 2019

Does grapesjs encode images within templates to base64? If so, is there a way to NOT do this or to decode before sending to S3?

Edit: So I downloaded a template from the Amazon S3 bucket where we are storing them and it seems to already be base64 encoded. This leads me to believe that grapes is encoding it before it gets to Amazon. Is there a way to NOT encode images? Thank you.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.