
question about using vb.net's Web.Mail class
Email validation. Oh, what fun.
The short answer is no. You can use regex to ensure the address if formatted
correctly, but it will not validate. For true validation, you need to query
the email server on the customer's end. There are different third party
components that will save you a lot of time (as opposed to writing your own)
and I would suggest using one if you absolutely need to know.
In general, basic string validation (regex), along with a mechanism to
remove addresses that bounce, is enough for most apps.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge
****************************************************************************
****
Think Outside the Box!
****************************************************************************
****
Quote:
> Is there any way using the web.mail.class to resolve a server name or
> an email address before actually sending the email? Is there a way to
> make sure I'm sending to a valid email address?
> Thanks,
> Rut