Kundenkontakte, prüfung ob korrekte Email.

This commit is contained in:
2026-01-30 13:42:12 +01:00
parent e83dc39870
commit 9c8f6c626f
7 changed files with 336 additions and 211 deletions

View File

@@ -900,6 +900,27 @@ BindingFlags.Instance Or BindingFlags.NonPublic, Nothing, [Control], New Object(
End Function
Shared Function checkifMailisOK(email As String) As Boolean
If String.IsNullOrWhiteSpace(email) Then
Return True
Else
Try
Dim addr As New System.Net.Mail.MailAddress(email)
' zusätzlicher Check: Domain muss einen Punkt enthalten
Dim domain As String = addr.Host
If Not domain.Contains(".") Then Return False
Return True
Catch
Return False
End Try
End If
End Function
Public Function MakeScreenshot()
Dim form As New Form
form = Form.ActiveForm