Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
Visual Basic .NET
Validate an Email Address
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
John Wright
#1
Validate an Email Address
Sep 4 '08, 03:05 PM
I want to validate an email address against our Exchange server. Anyone
have code or point me in the right direction?
John
sloan
#2
Sep 4 '08, 06:05 PM
Re: Validate an Email Address
Maybe this will get you started?
http://www.codeproject.com/KB/aspnet/Query_Exchange_from_NET.aspx
I'm assuming you mean more than just "is this a valid email address?"
"John Wright" <riley_wright@h otmail.comwrote in message
news:OG5g26pDJH A.4768@TK2MSFTN GP06.phx.gbl...
>I want to validate an email address against our Exchange server. Anyone
>have code or point me in the right direction?
>
>
John
>
Comment
Post
Cancel
sloan
#3
Sep 4 '08, 06:08 PM
Re: Validate an Email Address
Maybe this will get you started?
http://www.codeproject.com/KB/aspnet/Query_Exchange_from_NET.aspx
I'm assuming you mean more than just "is this a valid email address?"
"John Wright" <riley_wright@h otmail.comwrote in message
news:OG5g26pDJH A.4768@TK2MSFTN GP06.phx.gbl...
>I want to validate an email address against our Exchange server. Anyone
>have code or point me in the right direction?
>
>
John
>
Comment
Post
Cancel
kimiraikkonen
#4
Sep 5 '08, 06:15 AM
Re: Validate an Email Address
On Sep 4, 5:58 pm, "John Wright" <riley_wri...@h otmail.comwrote :
I want to validate an email address against our Exchange server. Anyone
have code or point me in the right direction?
>
John
If you're not meaning domain validation, but format validation of mail
address, you can use Regex pattern to check if it's a valid e-mail
address:
'-----Begin-------
Imports System.Text.Reg ularExpressions
Dim pattern As String
' I hope pattern is proper
pattern = "\w+([-+.]\w)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
If Regex.IsMatch(" mail_here", pattern) = True Then
MsgBox("Valid mail address!")
Else
MsgBox("Invalid mail address!")
End If
'-----End-------
Hope this helps,
Onur Güzel
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment