var userClient = new SmtpClient("smtp.gmail.com")
{
Port = 587,
Credentials = new NetworkCredential("email_sender", "sender_password"),
EnableSsl = true
};
userClient.Send("email_sender", "email_reciver", "body", "subject");
there is the code that i use,where is the problem?!