Determining which email client sent an email
There might be times where determining which email client (Outlook, OWA, or ActiveSync) sent a particular email is important. In this recipe, we will see how we can do this using Message Tracking Logs.
How to do it...
To check which email client was used to send an email, we check the SourceContext
property of the email using the following cmdlet:
Get-TransportService | Get-MessageTrackingLog `-ResultSize Unlimited -Start 04/04/2017 `-Sender [email protected] -Recipients [email protected] `-MessageSubject "Financial Report" -EventID SUBMIT | `Select SourceContext
How it works...
Every email sent has a SourceContext
property which contains, amongst other information, the ClientType
used to send the email. The important thing is to check this property for SUBMIT
events, that is, when the Mailbox Transport Submission service successfully transmits the email to the Transport service.
For SUBMIT
events, the SourceContext
property contains the following details...