Public Class Form1 Dim email As New System.Text.RegularExpressions.Regex("\S+@\S+\.\S+") ... Mail.To.Add(TextBox1.Text) ' кому if kshyms@yandex@gmail.com 1 address and 2 address kshyms@yahoo.com no error message is sent to vb.net if 988811@mail.ru 3 address gives an error A raw exception like "System.FormatException" occurred in System.dll
Additional information: Invalid character in email header: ''.
In the cycle I send to the addresses of the letter and this problem and how to solve it?
Mail.To.Add(TextBox1.Text)-emailnot used here, can a whitespace characterTextBox1.Textsent inTextBox1.Text? - slippyk