How to fix a gift card image not showing in the email?

How to fix a gift card image not showing in the email?

There are a number of reasons for gift card images not showing in the email. To resolve this issue, kindly try the solutions below.

1. Please, note that for correct sending of images via emails, the module requires installation of the Imagick module on the server as well as dompdf library. Therefore, as the first step, make sure that Imagick module and dompdf library are installed. You may install the extensions via composer with the following commands:

composer require dompdf/dompdf
sudo apt-get install php-imagick

2. If the modules required are already installed, then, please, try to adjust the /etc/ImageMagick-6/policy.xml file by adding the following line: <policy domain="coder" rights="read|write" pattern="PDF" /> - to the end of the file. The final code should look as follows: 

.....
<policy domain="coder" rights="none" pattern="XPS" />
<policy domain="coder" rights="read|write" pattern="PDF" />
</policymap>


      • Related Articles

      • How does printed card work in the Gift Card extension?

        By default, the Gift Card extension offers administrators the flexibility to choose the type of gift card during its creation: virtual, printed (physical), or combined. A virtual gift card functions as an email-sent code, resembling the format of ...
      • Is it possible to rearrange and stylize elements on the gift card image?

        Starting from version 2.7.0, the Gift Card extension provides UI for editing and rearranging elements (expiry date, balance, etc.) on the gift card image right from the admin panel. To do so, add a new image in Gift Card → Images → Add New or open ...
      • How to choose time/date of sending a gift card via email?

        The extension allows customers to select only the date of certificate delivery. For greater delivery accuracy, customers will need to specify the recipient's timezone. The email is sent with the execution of the first cron job on the selected date. ...
      • How to activate the gift card account?

        The gift card account is created automatically when the order is invoiced and paid. If the order has the Complete status, but the code of the gift card is not activated and can't be applied, please contact our team.
      • Can I restrict multiple usage of a gift card code?

        The Gift Card Pro and Premium tariffs provide an option to restrict/allow multiple usage for specific gift card codes. To do so, proceed to Gift Card → Accounts and select an account you would like to edit. The Usage option may be set to either ...