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?

  • Rephrase the question. Something is not clear - iluxa1810
  • What kind of data parses regular? Mail.To.Add(TextBox1.Text) - email not used here, can a whitespace character TextBox1.Text sent in TextBox1.Text ? - slippyk

0