Hi,
The problem is that in Credentials you are using username@gmail, here you should use only username :)
this code is working fine
MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
mail.From = new MailAddress("xyz@gmail.com");
mail.To.Add("abc@gmail.com");
mail.Subject = "Test Mail";
mail.Body = "test mail";
SmtpServer.Port = 587;
SmtpServer.Credentials = new System.Net.NetworkCredential("abc", "password");
SmtpServer.EnableSsl = true;
SmtpServer.Send(mail);
Response.Write("mail Send");
Rate the solution if you like