John wrote:
[Quoted Text] > Hi > > I have this problem that client users enter emails incorrectly due to type > and either the domain name is invalid (Microsot.com instead of > Microsoft.com) or the syntax of the email (user'domain.com instead of > user[ at ]domain.com). Is there any way to ensure a) email syntax is correct and > b) reverse dns or any other check to highlight invalid domain names? > > Thanks > > Regards > >
Try this. I found this, never used it so I don't know if it works or not.
Function InterNetSMPT(S) Dim HasAt, HasDomain, Host, Server If InStr(S, "[ at ]") > 0 Then HasAt = True Server = Mid(S, InStr(S, "[ at ]") + 1) If InStr(Server, ".") = 0 Then InterNetSMPT = False Exit Function End If Else InterNetSMPT = False Exit Function End If InterNetSMPT = True End Function
|