J John Wright Sep 4, 2008 #1 I want to validate an email address against our Exchange server. Anyone have code or point me in the right direction? John
I want to validate an email address against our Exchange server. Anyone have code or point me in the right direction? John
S sloan Sep 4, 2008 #2 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?"
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?"
K kimiraikkonen Sep 5, 2008 #3 I want to validate an email address against our Exchange server. Anyone have code or point me in the right direction? John Click to expand... 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.RegularExpressions 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
I want to validate an email address against our Exchange server. Anyone have code or point me in the right direction? John Click to expand... 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.RegularExpressions 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