Orlando Batista
Guest
|
Posted:
Tue Jan 04, 2005 12:43 am Post subject:
Identifying returns emails |
|
|
Hi everyone,
I develop an application that sends statements account
for customers of a bank.
Everything works fine, I know when every email it is sent
or not, but after exchange sent each message out to the
Internet I loose control of it. I fill a MS SQL database
with all the information of the delivery, and mark each
record with an status of "Sent".
I develop an another service that iterates in Outlook
Inbox of the account I use to send every email. This
service correctly identify when the Exchange Server
couldn't sent a message to outside. With the information
in this message I clearly identify the message and I
update the record status to "No Sent".
My problem begins at this point, because I need to know
when I receive a return "bounce" email for an outside
SMTP server.
There is any way, I could mark my messages to know when a
response message is sent back to my Inbox or Exchange
Server?
|
|
Henning Krause [MVP]
Guest
|
Posted:
Tue Jan 04, 2005 12:55 am Post subject:
Re: Identifying returns emails |
|
|
Hello,
if I understand you correctly, you want to match Non-Delivery-Reports (NDRs)
to the actual sent mail so you can change the the corresponding record from
"Sent" to "Failed" or something like that.
NDRs have a special defined format, so these RFCs may help you:
RFC 1891 - SMTP Service Extension for Delivery Status Notifications
http://www.faqs.org/rfcs/rfc1891.html
RFC 1892 - The Multipart/Report Content Type for the Reporting of Mail
System Administrative Messages
http://www.faqs.org/rfcs/rfc1892.html
RFC 1893 - Enhanced Mail System Status Codes
http://www.faqs.org/rfcs/rfc1893.html
RFC 1894 - An Extensible Message Format for Delivery Status Notifications
http://www.faqs.org/rfcs/rfc1894.html
In particular, each NDR should contain an attachment with at least the
headers of the original mail, if I recall that correctly.
Greetings,
Henning Krause [MVP]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)
"Orlando Batista" <Orlando Batista@discussions.microsoft.com> wrote in
message news:D26E80EE-8880-40E4-942A-E3DD3012CD4B@microsoft.com...
| Quote: | Hi everyone,
I develop an application that sends statements account
for customers of a bank.
Everything works fine, I know when every email it is sent
or not, but after exchange sent each message out to the
Internet I loose control of it. I fill a MS SQL database
with all the information of the delivery, and mark each
record with an status of "Sent".
I develop an another service that iterates in Outlook
Inbox of the account I use to send every email. This
service correctly identify when the Exchange Server
couldn't sent a message to outside. With the information
in this message I clearly identify the message and I
update the record status to "No Sent".
My problem begins at this point, because I need to know
when I receive a return "bounce" email for an outside
SMTP server.
There is any way, I could mark my messages to know when a
response message is sent back to my Inbox or Exchange
Server?
|
|
|