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. Confirm Email Address

Confirm Email Address

Scheduled Pinned Locked Moved C#
csharpdatabasevisual-studiohelpquestion
3 Posts 3 Posters 0 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.
  • Y Offline
    Y Offline
    yesufollower
    wrote on last edited by
    #1

    I'm using the System.Net.Mail client.Send(MailMessage) (Visual Studio 2005) method to send an email confirmation that a new contact has been added to an email distribution list. Before adding the contact to the relevant distribution list database, I want to confirm that the contact's email address is a valid one, so that if, say, the user made a typo when entering the email address, he can know. By using error catching, I can catch and report formatting errors in the email address, but if the format is correct but the address itself is not a valid one, no error is caught. Is there a way to check for successful delivery of an email shortly (almost immediately) after sending it? Thanks.

    E G 2 Replies Last reply
    0
    • Y yesufollower

      I'm using the System.Net.Mail client.Send(MailMessage) (Visual Studio 2005) method to send an email confirmation that a new contact has been added to an email distribution list. Before adding the contact to the relevant distribution list database, I want to confirm that the contact's email address is a valid one, so that if, say, the user made a typo when entering the email address, he can know. By using error catching, I can catch and report formatting errors in the email address, but if the format is correct but the address itself is not a valid one, no error is caught. Is there a way to check for successful delivery of an email shortly (almost immediately) after sending it? Thanks.

      E Offline
      E Offline
      Ed Poore
      wrote on last edited by
      #2

      Won't the it throw an exception if it can't resolve the address of the email server.  I.e. hjakfhjksd';# is not a valid email so that's caught by your validation.  But support@microsoft.com is but may not exist.  Surely there's a timeout of some sort if there's no response from the server. Note, just my thoughts, havn't tried it yet.

      As of how to accomplish that have you ever tried Google? Failing that try :badger::badger::badger:.

      1 Reply Last reply
      0
      • Y yesufollower

        I'm using the System.Net.Mail client.Send(MailMessage) (Visual Studio 2005) method to send an email confirmation that a new contact has been added to an email distribution list. Before adding the contact to the relevant distribution list database, I want to confirm that the contact's email address is a valid one, so that if, say, the user made a typo when entering the email address, he can know. By using error catching, I can catch and report formatting errors in the email address, but if the format is correct but the address itself is not a valid one, no error is caught. Is there a way to check for successful delivery of an email shortly (almost immediately) after sending it? Thanks.

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        No, there isn't. The only way to be sure that a mail has reached the recipient is to make the mail program send a read confirmation. Otherwise you can never be sure where the mail went. It can be filtered as spam by the sending server, by the recieving server or by the recipients mail program, or it can be held in a queue for hours or days before the server concludes that it can't be sent. There is no way to get an immediate confirmation, though. If there was, that would be the dream for spammers. They could create email addresses by random, and get an immediate response whether the email address existed or not.

        --- b { font-weight: normal; }

        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