System.Net.Mail Namespace issues

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Wright

    #1

    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 deliverynoifica tion. 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 _DeliveryNotifi cation <DeliveryNotifi cationOptions.N one AndAlso
    _ReturnPath.Tri m <"" Then

    ..Headers.Add(" Return-Path", "<" & _ReturnPath & ">")

    ..DeliveryNotif icationOptions = _DeliveryNotifi cation

    Else

    ..DeliveryNotif icationOptions = DeliveryNotific ationOptions.No ne

    End If


Working...