H S
H S

Reputation: 169

Detect auto reply emails programmatically

I have scenario where I would have to track the delivery of the emails I send programmatically and flag those recipients who have set either 'Out of Office" OR have the message delivery failed due to over-sized inbox OR if their email ID doesn't exist. Such instances usually send out automated replies. How can I track them? Does .NET (System.Net.Mail) offer any APIs to do it?

Upvotes: 12

Views: 12452

Answers (1)

Eric R. Rath
Eric R. Rath

Reputation: 1979

There's no set of checks for auto-responses that produce perfect behavior (detect all auto-replies with no false positives), but the following checks have worked well so far:

  • header Auto-Submitted with value other than no (see RFC 3834)
  • headers X-Autoreply or X-Autorespond with any value
  • header Precedence with value auto_reply

I don't yet have any advice for detecting message delivery failure notifications.

Upvotes: 27

Related Questions