Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. identify email sent or not

identify email sent or not

Scheduled Pinned Locked Moved C#
help
14 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Gerrit444

    Hi ! In the section, where you set your mail values (for example: mail.From = new MailAddress(Mail_From); mail.Subject = Mail_Subject; mail.Body = Mail_Body; you have to add two lines: mail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess; mail.Headers.Add("Disposition-Notification-To", ""); Then normally (and if the recipient click 'yes'), you will receive a mail-answer. Best regards, Gerrit

    N Offline
    N Offline
    NarendraSinghJTV
    wrote on last edited by
    #3

    hey gerrit, thanks for reply i want to ask u is it necessary to use headers.add part for notification, or it will work without header part too. ("Disposition-Notification-To", and i have to pass what there) because with "" it is giving error waiting for your reply

    Regards Narendra Singh (Jindal Tech Ventures)

    modified on Wednesday, March 10, 2010 3:09 AM

    G 1 Reply Last reply
    0
    • N NarendraSinghJTV

      hey gerrit, thanks for reply i want to ask u is it necessary to use headers.add part for notification, or it will work without header part too. ("Disposition-Notification-To", and i have to pass what there) because with "" it is giving error waiting for your reply

      Regards Narendra Singh (Jindal Tech Ventures)

      modified on Wednesday, March 10, 2010 3:09 AM

      G Offline
      G Offline
      Gerrit444
      wrote on last edited by
      #4

      Hi ! In any way, I have trouble with the editor. I am shure to have written > mail.Headers.Add("Disposition-Notification-To", ""); If it comes out wrong again, the empty quotationmarks must contain a valid email address in brackets. Best regards, Gerrit

      G 1 Reply Last reply
      0
      • G Gerrit444

        Hi ! In any way, I have trouble with the editor. I am shure to have written > mail.Headers.Add("Disposition-Notification-To", ""); If it comes out wrong again, the empty quotationmarks must contain a valid email address in brackets. Best regards, Gerrit

        G Offline
        G Offline
        Gerrit444
        wrote on last edited by
        #5

        Hi ! I did not work once again ! Another Trial : mail.Headers.Add("Disposition-Notification-To", "gerit.rait@neus-ag.de"); Best Regards, Gerrit

        modified on Wednesday, March 10, 2010 7:32 AM

        N 2 Replies Last reply
        0
        • G Gerrit444

          Hi ! I did not work once again ! Another Trial : mail.Headers.Add("Disposition-Notification-To", "gerit.rait@neus-ag.de"); Best Regards, Gerrit

          modified on Wednesday, March 10, 2010 7:32 AM

          N Offline
          N Offline
          NarendraSinghJTV
          wrote on last edited by
          #6

          now its not giving error and key is also added to the header part, but it is not getting any notification

          Regards Narendra Singh (Jindal Tech Ventures)

          1 Reply Last reply
          0
          • G Gerrit444

            Hi ! I did not work once again ! Another Trial : mail.Headers.Add("Disposition-Notification-To", "gerit.rait@neus-ag.de"); Best Regards, Gerrit

            modified on Wednesday, March 10, 2010 7:32 AM

            N Offline
            N Offline
            NarendraSinghJTV
            wrote on last edited by
            #7

            my code is ");> like this is it right

            Regards Narendra Singh (Jindal Tech Ventures)

            G N 2 Replies Last reply
            0
            • N NarendraSinghJTV

              my code is ");> like this is it right

              Regards Narendra Singh (Jindal Tech Ventures)

              G Offline
              G Offline
              Gerrit444
              wrote on last edited by
              #8

              Hi ! I do not think so. > mssg.Headers.Add("Disposition-Notification-To", "xxxxxx"); There is the email address missing between the empty quotation mark. (here xxxxxx) You do NOT get back a notification from the programm. The recipient of the email is asked, to push a commit button and then a email is send to the address, you set in your mssg.Headers.Add. The email-address at the place xxxxxx must set between brackets. Best regards, Gerrit

              1 Reply Last reply
              0
              • N NarendraSinghJTV

                my code is ");> like this is it right

                Regards Narendra Singh (Jindal Tech Ventures)

                N Offline
                N Offline
                NarendraSinghJTV
                wrote on last edited by
                #9

                yes i have added mail address there but it is not showing anything can we add Disposition-Notification-Options???

                Regards Narendra Singh (Jindal Tech Ventures)

                G 1 Reply Last reply
                0
                • N NarendraSinghJTV

                  yes i have added mail address there but it is not showing anything can we add Disposition-Notification-Options???

                  Regards Narendra Singh (Jindal Tech Ventures)

                  G Offline
                  G Offline
                  Gerrit444
                  wrote on last edited by
                  #10

                  Hi ! You have already set the options in > mail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess; with the enum .OnSuccess Once again: You will not receive a notification or a message in Your programm. With the two additional programm lines, a messagebox will show up at the computer of the mail-receiver. If he commits this box, a notification-mail will be send back to the mail-address you set. Best regards, Gerrit

                  N 1 Reply Last reply
                  0
                  • G Gerrit444

                    Hi ! You have already set the options in > mail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess; with the enum .OnSuccess Once again: You will not receive a notification or a message in Your programm. With the two additional programm lines, a messagebox will show up at the computer of the mail-receiver. If he commits this box, a notification-mail will be send back to the mail-address you set. Best regards, Gerrit

                    N Offline
                    N Offline
                    NarendraSinghJTV
                    wrote on last edited by
                    #11

                    yes gerrit i know i will not receive a notification or a message in my programm. but it is not showing messagebox at mail receiver, thats what i m trying to say plz help me with that

                    Regards Narendra Singh (Jindal Tech Ventures)

                    N 1 Reply Last reply
                    0
                    • N NarendraSinghJTV

                      yes gerrit i know i will not receive a notification or a message in my programm. but it is not showing messagebox at mail receiver, thats what i m trying to say plz help me with that

                      Regards Narendra Singh (Jindal Tech Ventures)

                      N Offline
                      N Offline
                      NarendraSinghJTV
                      wrote on last edited by
                      #12

                      it have some issues with different mail servers (like gmail, yahoo, hotmail)????????????

                      Regards Narendra Singh (Jindal Tech Ventures)

                      G 1 Reply Last reply
                      0
                      • N NarendraSinghJTV

                        it have some issues with different mail servers (like gmail, yahoo, hotmail)????????????

                        Regards Narendra Singh (Jindal Tech Ventures)

                        G Offline
                        G Offline
                        Gerrit444
                        wrote on last edited by
                        #13

                        Hi ! I did try it with an Outlook (2003 and 2000) frontend and a MS Exchange server to send the Mail. As a receiver, I tried Outlock 2003 directly linked to a Web-provider and the Mail frontend of the Web-provider(1x1) itself and it worked perfectly. I suppose Your receiver will not answer for notifications at all (maybe you have set an option) or Your mail-address for the notification is in the receivers list for spam-mail. As I do not know about your mail-receiver, I am afraid that I cannot help here. Sorry. Best regards, Gerrit

                        N 1 Reply Last reply
                        0
                        • G Gerrit444

                          Hi ! I did try it with an Outlook (2003 and 2000) frontend and a MS Exchange server to send the Mail. As a receiver, I tried Outlock 2003 directly linked to a Web-provider and the Mail frontend of the Web-provider(1x1) itself and it worked perfectly. I suppose Your receiver will not answer for notifications at all (maybe you have set an option) or Your mail-address for the notification is in the receivers list for spam-mail. As I do not know about your mail-receiver, I am afraid that I cannot help here. Sorry. Best regards, Gerrit

                          N Offline
                          N Offline
                          NarendraSinghJTV
                          wrote on last edited by
                          #14

                          no need to say sorry thanks for all your help

                          Regards Narendra Singh (Jindal Tech Ventures)

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups