Send email from "In-Transaction" not "Standard"

I know that there is not an option to send email from the “IN-Transaction” data directive. Is that other options to send email from “In-Transaction” that I might be aware of?

I am create a data directive that must be in done before the data is updated.

The Logic:

If Condition is TRUE, Send email alert and then raise an exception (To abort the updating).

You can do it in a custom code block. Search the site for GetMailer