Send Emails from two different domains

Hey everyone.

Hopefully a fairly quick one! I have an app in which I want to send emails from two different domains.

So for example,
If condition A is true: send from hello@example.com
If condition B is true: send from hello@test.com

I have access to the DNS and everything of both domains so that side of things isn’t an issue. I am currently using SendGrid as its the most integrated with Bubble.

I know there is something in SendGrid about setting up whitelabels but not sure how this would work actually with a Bubble workflow?

Anyone been able to set something like this up and how the actual workflow happens in Bubble.

Thanks!