Hi,
This is a common requirement when working across Dev, Test, and Prod environments, and disabling the Exchange profile won’t stop emails triggered via Power Automate or connectors.
What’s happening:
Power Automate flows send emails using their own connections (like Office 365 Outlook), which are independent of the Exchange server profile settings in the environment. That’s why deactivating the profile has no effect.
How to handle this properly:
1. Use environment-based conditions (recommended)
Add a condition in your flow to check the current environment and control email behavior.
You can:
- Store the environment name in an Environment Variable
- Or use a variable/config table to identify Dev/Test/Prod
Then:
- If Dev/Test → skip sending email OR send to a test mailbox
- If Prod → send to actual recipients
2. Use Environment Variables for recipients
Create Environment Variables like:
- Email_To
- Email_CC
Set different values per environment:
- Dev/Test → your email or dummy mailbox
- Prod → real users
Then reference these variables in your email action.
3. Use a toggle flag (safe approach)
Create a variable like:
SendEmails = Yes/No
- Dev/Test → No
- Prod → Yes
Add a condition before email action:
Only send when SendEmails = Yes
Suggested approach:
Best practice is to combine:
- Environment Variables (for recipients)
- A condition/toggle (to enable/disable emails)
This gives you full control without changing the flow logic every time.
Hope this helps,
If this helps resolve your issue, please consider marking the response as Verified so it can help others facing a similar scenario.
If you found this helpful, you can also click “Yes” on “Was this reply helpful?” or give it a Like.