---
title: "How to Send Product Images in Order Transaction Mail to Customers in Magento 2"
url: "https://magecomp.com/blog/send-product-images-in-order-transaction-mail-to-customers-magento-2/"
date: "2017-12-23T16:42:31+00:00"
modified: "2025-02-22T09:50:59+00:00"
author:
  name: "Dhiren Vasoya"
  url: "https://magecomp.com/"
categories:
  - "How To"
  - "Magento 2"
word_count: 332
reading_time: "2 min read"
summary: "Getting in touch with clients using Email is an inexpensive and widely used form of highly effective business communication compared to others communication channels. Out of the box, Magento comes ..."
description: "Follow these simple steps to add product images to all Magento 2 generated order Emails that let your customers to easily identify the product from the bunch..."
keywords: "How To, Magento 2"
language: "en"
schema_type: "Article"
related_posts:
  - title: "Top 10 Magento 2 Currency Switcher Extension Providers"
    url: "https://magecomp.com/blog/top-magento-2-currency-switcher-extension-providers/"
  - title: "What is Localization in Laravel and How to Use it?"
    url: "https://magecomp.com/blog/laravel-localization/"
  - title: "Magento 2: How to Retrieve Masked ID from the Cart ID"
    url: "https://magecomp.com/blog/magento-2-retrieve-masked-id-from-the-cart-id/"
---

# How to Send Product Images in Order Transaction Mail to Customers in Magento 2

_Published: December 23, 2017_  
_Author: Dhiren Vasoya_  

![img How to Send Product Image in Order Transaction Mail to Customers in Magento 2](https://magecomp.com/blog/wp-content/uploads/2017/12/img_How-to-Send-Product-Image-in-Order-Transaction-Mail-to-Customers-in-Magento-2-1024x332.webp)

Getting in touch with clients using Email is an inexpensive and widely used form of highly effective business communication compared to others communication channels. Out of the box, Magento comes with built-in functionality to notify customers of each and every order status like order, invoice, shipment and credit memo. Generally, this Email is made up of various details like customer information, ordered products, subtotal and purchase amount, but it doesn’t contain product images that’s why it is difficult to identify the product from the product list. One of our clients suggested us to add functionality of including product thumbnail image to Email, so when there is a bulk order or thousands of products in an Email, it becomes easier for their customers to identify the products they are looking for.

[![Hire Magento Programmer](https://magecomp.com/blog/wp-content/uploads/2025/02/Hire-Magento-Programmer-CTA-4.webp)](https://magecomp.com/services/hire-magento-programmer/)

After spending some time to develop such functionality, finally, we came out with a tiny piece of code. Here I am sharing the easiest way to ***add product images in all transactional Emails sent to customers in Magento 2***.

Just paste the following code to default.phtml file available on below path.
**app/design/frontend/[theme name]/Magento Sales/templates/email/items/order**

```
$_item = $block->getItem();
$_order = $_item->getOrder();

$imageSize = (int)$block->getConfig('sales_email/imageconfig/image_resize');
if($imageSize <=10) $imageSize = 135;
$_imagehelper = $this->helper('MagentoCatalogHelperImage');
if($childProd = current($_item->getChildrenItems()))
{
        $productImage = $_imagehelper->init($childProd->getProduct(), 'category_page_list', array('height' => $imageSize , 'width'=> $imageSize))->getUrl();
}
else
{
        $productImage = $_imagehelper->init($_item->getProduct(), 'category_page_list', array('height' => $imageSize , 'width'=> $imageSize))->getUrl();
}
```

[![Magento Malware Removal](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-Malware-Removal-CTA-4.webp)](https://magecomp.com/magento-malware-removal.html)Once you have implemented above code successfully, it will automatically identify and send product image to each & every order transactional mail that are done via Magento 2 environment. Now just clear the cache and you are ready to go.

Let the stars below to shine and if you face any issue while implementing code, I will be glad to help you.

[![Magento 2 Speed & Performance Optimization Services](https://magecomp.com/blog/wp-content/uploads/2023/10/Magento-2-Speed-Performance-Optimization-Services-CTA-4.webp)](https://magecomp.com/magento-performance-optimization.html)Happy Mailing!


---

_View the original post at: [https://magecomp.com/blog/send-product-images-in-order-transaction-mail-to-customers-magento-2/](https://magecomp.com/blog/send-product-images-in-order-transaction-mail-to-customers-magento-2/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-10-19 11:33:23 UTC_  
