Results 1 to 2 of 2

Thread: SMTP>>>>>

  1. #1
    Join Date
    Dec 1969

    Default SMTP>>>>>

    hi,<BR>how do i validate a mailid..<BR>and how do i detect a smtp server failure?<BR><BR>kindly help<BR>regards,<BR>mickey

  2. #2
    Join Date
    Dec 1969

    Default RE: SMTP>>>>>

    Not much you can do about validating that an e-mail exists. The only thing that you can do is validate that the e-mail was entered in a proper format.<BR>- Contains @ character<BR>- Contains . character at least 2 characters AFTER @ character<BR>- Contains at least 2 characters AFTER . character<BR><BR>This can be done using a regular expression - and not a difficult one at that, but I don&#039;t know it offhand (quick Google search should bring it up for you).<BR><BR>As for detecting SMTP failure -- whatever COM object that you use to send the e-mail should return a true/false if it couldn&#039;t send the e-mail. Just query that.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts