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.