Troubleshooting Gift Card Email Delivery Issues After Order Creation

Troubleshooting Gift Card Email Delivery Issues After Order Creation

If gift card emails are not being sent after an order is created on your Magento site, the issue may be related to the execution of Magento consumers. Check the following points:

      1. Check if the consumers_run cron job is executing in Magento.

Magento uses cron jobs to run various background processes, including the execution of consumers. One of the crucial tasks is the consumers_run cron job, which handles operations related to consumers, such as sending gift card notifications.

      2. Verify the app/etc/env.php file for the cron_consumers_runner array.

Magento requires the cron_consumers_runner array to be correctly set up in the app/etc/env.php file. If the necessary consumer is missing from the array, it can prevent gift card email notifications from being sent. Follow these steps to check and fix this:
  1. Open the app/etc/env.php file located in your Magento root directory.

  2. Look for an array named cron_consumers_runner. This array should include the necessary consumers.

  3. If the amasty_gift_card_account.send_notification consumer is missing from the array, add it manually;

  4. After adding the consumer, run the cron jobs again to see if the email is sent: php bin/magento cron:run

If the issue persists, contact Amasty support for further assistance.

      • Related Articles

      • How to activate the gift card account?

        Out of the box, the gift card account is created automatically when the order is invoiced and paid. Since v. 2.18.0 of Gift Card extension it is possible to create gift code accounts and send gift card emails right after the order creation, along ...
      • 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 ...
      • 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. ...
      • Gift Card API

        We have created public API collections for Gift Card module and its Gift Card Account submodule with all available queries and sample data that you can both test via our demo endpoints and copy to run local tests in your Magento environment. More ...
      • How Gift Card Codes are Generated?

        Gift Card codes in Magento are generated automatically when creating a gift card, either when processing an order or manually during the gift card creation process. These codes are pulled randomly from a code pool selected for the specific gift card: