A lot happens behind the scenes when a user in an organization writes an email. When the user presses the…