System.Net.Mail Namespace issues



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


.



Relevant Pages

  • Re: How to Determine Column Header Right Clicked in a List Control
    ... "Edward Mitchell" wrote in message ... > header control embedded in a CListCtrl. ... > When I look at the trace, the iItem is 1252 and the iButton is ... > header item that is the focus of the notification message. ...
    (microsoft.public.vc.mfc)
  • send on behalf
    ... One of my users has lost the 'send on behald' notification that appears on ... the header of the email. ...
    (microsoft.public.office.misc)
  • Re: sound for email noticication
    ... One more minor question. ... Does this go under Windows>'mail notification'? ... There is no header for 'Outlook Express' but there is for MSN etc ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • [PATCH] Make headers_check less chatty for success cases
    ... "make headers_check" is too verbose. ... and not just on seeing errors. ... even if you touch just one little header in some corner ... Make headers_check less chatty for success cases ...
    (Linux-Kernel)
  • Re: Headers and Page Numbers Word 2007
    ... will not increment the numbers. ... I have tried putting the field code in a text box and anchoring it to the L ... or R side of the page with no success. ... This throws out the header. ...
    (microsoft.public.word.pagelayout)