MS Exchange -- running code against outbound email
I would like to know if using MS Exchange there is a way to run code against outbound emails.
The code would need to trigger on emails sent to a specific domain, connect to a database, check for an email related to the email sent, and Carbon-copy that email to the related email.
What I'm trying to do: When [email protected] gets an email, his auditor [email protected] gets CC'd. Jack is in a MSSQL DB table related to his auditor's email.
Are there any samples of things like this being done?
There are methods for this. You'll have to register as a Transport Agent and there are API documents for doing this. This is in effect what Antivirus systems do. All mail will be passed through the Transport Agent. What your code does once it's passed off is up to you.