I would like to point to a module to support D10 / D11 and Commerce 3: https://www.drupal.org/project/commerce_giftcard_mail →
Active
1.0
Miscellaneous