Why do images from a Magento 2 HTML offer disappear in email?

2 min read

An open envelope with product cards and a small photograph peeking from one

Keep the original offer HTML and the copy pasted into the campaign template. For each card, compare img src with a href. The first fetches the image and the second opens the product page.

Check which image address the generator put in the HTML

Generator 1.0.16 joins the store’s media base URL and the main product image path. When there was no image, the probe produced an empty src. The Admin preview may have a session and a base URL unavailable to email. Open the full HTTPS address without a session and record the final status and Content-Type. Product Offer Generator. Module documentation.

Record the result for each image and link

The product links worked on the local server with the original generator. One image got a 404 and another redirected to a login page with a final HTTP 200. Check the content type as well.

Image reads from sample HTML
Image sourceHTTP statusesContent-TypeWhat to check
Working absolute URL200image/pngCheck the copy in the message preview
Missing file at absolute URL404text/htmlAssign an available image and regenerate HTML
Absolute URL redirects to sign-in302 → 200text/htmlUse a file URL that works without a session
Empty src——Assign a main product image
Relative path——Check the media base URL and regenerate

If the image works without a session and the template address matches, check whether the mail client blocks external images in a test preview. Outlook on mobile has this setting. External images in Outlook.

For generating and pasting the offer, see the earlier guide.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)