I have created a wrapper for the system.net.mail that allows a program to
send emails. I have set some properties in the headers with great success,
had the reply-to work find and the disposition to also work to notify
someone when the mail was read. However, I am having problems when is comes
to the deliverynoification. If I use my email address in the return-path
header and the from field, I get a notification the email was sent
correctly. However, if I use a group email address as the from email (it is
our IT group) and my email as the return-path (yes I am part of the IT group
in the to field), I do not receive any notifications. Does anyone know how
to fix this. I have include the line of code that I set the header for
reference. I have stepped through the code and it creates the header and I
can see the header in the email. Lastly, does anyone know how you can be
notified of more than one notification (for instance I want to know of any
delays, successes and failures).
Thanks.
John
If _DeliveryNotification <DeliveryNotificationOptions.None AndAlso
_ReturnPath.Trim <"" Then
..Headers.Add("Return-Path", "<" & _ReturnPath & ">")
..DeliveryNotificationOptions = _DeliveryNotification
Else
..DeliveryNotificationOptions = DeliveryNotificationOptions.None
End If