Skip to main content

How to send a test receipt

The extension includes a command-line tool for sending a test customer receipt email. Use it to check that your sender, template, and mail delivery are working correctly.

Prerequisite

At least one withdrawal request must exist in the database. The command sends the receipt for the most recent request. If none exist yet, you will see No withdrawal requests found in the database. — place a test order and submit a withdrawal request first.

Run the following command from the root directory of your Magento 2 store:

php -f bin/magento withdrawal:email:test-receipt

The command sends the customer receipt email for the most recent withdrawal request using your current email settings. Check the inbox of the recipient to confirm the message arrives and looks the way you expect.

To send the receipt for a specific request, pass its ID:

php -f bin/magento withdrawal:email:test-receipt --id <request_id>
Note

If the email does not arrive, check your Magento email delivery setup and the Email Sender value under Stores → Configuration → Mirasvit → EU Withdrawal Button → Email.