1

We're just in the process of upgrading from Craft 2 with Commerce 1 to Craft 3 and Commerce 2. One of the issues we had before was that the client was getting confirmation emails for test orders.

Is it possible to set the confirmation email destination in the .env file so our team can set themselves as the target emails for their own local testing?

Thanks!

2

Could you use the testToEmailAddress config setting in your config.php? As this will send all emails to a single address.

'testToEmailAddress' => getenv('TEST_TO_EMAIL_ADDRESS')

Then in your .env set:

TEST_TO_EMAIL_ADDRESS="email@email.com"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.