Try this, hope it will help you.
for domain, change the port no., n check.
public void SendEmails(string ToEmail, string EmailSub, string EmailBody)
{
#region
MailMessage mailer = new MailMessage();
System.Net.NetworkCredential smtpauth = new System.Net.NetworkCredential();
smtpauth.UserName = "npsproject300@gmail.com";
smtpauth.Password = "project2013";
SmtpClient smtp = new SmtpClient();
smtp.UseDefaultCredentials = false;
smtp.Host = "smtp.gmail.com";
smtp.Credentials = smtpauth;
smtp.Port = 587;
smtp.EnableSsl = true;
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
mailer.From = new MailAddress("npsproject300@gmail.com");
mailer.Subject = EmailSub;
mailer.Priority = MailPriority.High;
mailer.Body = EmailBody;
mailer.IsBodyHtml = true;
if (ToEmail.Contains(";"))
{
try
{
string[] emails_ = ToEmail.Split(';');
for (int i = 0; i < emails_.Length; i++)
{
mailer.To.Add(new MailAddress(emails_[i]));
}
}
catch (Exception ex)
{
}
}
else
{
mailer.To.Add(new MailAddress(ToEmail));
}
smtp.Send(mailer);
#endregion
<pre lang="text">
}