question about using vb.net's Web.Mail class 
Author Message
 question about using vb.net's Web.Mail class

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



Tue, 09 Aug 2005 23:23:49 GMT  
 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



Wed, 10 Aug 2005 02:33:38 GMT  
 question about using vb.net's Web.Mail class

Ok, Thanks for the reply. I decided to use the Outlook object model
instead. It was easier to use when sending to an unknown smtp server.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Wed, 10 Aug 2005 02:54:11 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Can't Add Web Reference when using vb.net

2. can't reference .NET assembly's classes in VB

3. Accessing vb.net class from non.vb.net apps

4. Advanced StrechBlt / DIB question (using vbAccelerator's cDIBSection class)

5. A question on Assignment of an Instance of used's class

6. VB.NET: Steps for Converting a Windows .NET Application to a Web .NET Application

7. vb.net web service can't work

8. OO and class question for vb.net

9. Decode Encoded-word in MIME field mail using VB.net

10. using C# and VB.NET classes in the same project

11. Using a C# class in VB.net?

12. Exposing overloaded operator on C# class when used in VB.NET

 

 
Powered by phpBB® Forum Software