Ok. Anyway I found the solution. I had to use this class

SmtpClient smtp = new SmtpClient();

 

View solution in original post