Fixing images in the email templates

If you and your customers are seeing broken images in the email notifications sent by mPower, there is a high chance this issue is related to the misconfiguration of the Magento platform.

Instructions

The reason for this issue is that these emails are being sent by the CRON and this process has no access to the default store view configuration. There are two ways to fix the issue:

  1. Add the following code to your app/etc/env.php file

'directories' => [ 'document_root_is_pub' => true ],
  1. Update the configuration

    1. General > Web > Unsecure Base URLs

      1. Static View Files = unsecure_base_url/static/

      2. User Media Files = unsecure_base_url/media/

    2. General > Web > Secure Base URLs

      1. Static View Files = unsecure_base_url/static/

      2. User Media Files = unsecure_base_url/media/

 

Either one of these two options will work, you don’t have to do both.

Related articles