Why are images from a Magento 2 HTML offer missing in an email?

1 min read

An open envelope with product cards and a small photograph

Keep the original HTML and the copy in the campaign template. Compare img src and a href on each card. The first loads the image and the second opens the product page.

Check which image address is in the HTML

Generator 1.0.16 joins the media base URL and the main product image path. With no image, the test produced an empty src. The Admin preview may use a session and a base URL. Open the full HTTPS address without a session and note the final status and Content-Type. Product Offer Generator. Module documentation.

Note the result for each image and link

The original generator’s product links worked on the local server. One image gave 404 and another redirected to a sign-in 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 the HTML
Absolute URL goes to sign-in302 → 200text/htmlUse a file address 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. Outlook for 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)