SpoiledTechie.com
SpoiledTechie.com

Reputation: 10725

How to Detect Email Bounces with IIS 6 with C#

Just as the question says.

I am using IIS 6 to send emails out from my Windows Server with C#. I want to detect bounces with C# from the SMTP email server. Right now, all the bounces get sent to a Gmail account. I could just check and parse each email in that account, but I was wondering if there is any easier way like hooking up a windows service or something to the IIS 6 SMTP server.

Help?

Thanks!

Upvotes: 1

Views: 834

Answers (1)

Joel Mueller
Joel Mueller

Reputation: 28764

I know little about the IIS6 SMTP server, but based on what I know about SMTP in general, I doubt you're going to have much luck. Your message to [email protected] gets forwarded from server to server until it ends up at the foo.com SMTP server, which then responds to the reply-to address that the "joe" mailbox doesn't exist. That server may have no direct contact with your SMTP server at all.

As a result, there's no opportunity for the IIS6 SMTP server to receive any information about the bounced message. I think your existing idea of polling the inbox for the reply-to address is probably going to be your best bet.

Upvotes: 1

Related Questions