MailMessage m = new MailMessage ("item@sharejs.com", "raja@sharejs.com", "This is the subject for the authorized email.", "This is the body of the authorized mail!..."); // Send the message using authorization SmtpClient client = new SmtpClient("smtp.sharejs.com"); client.Credentials = new NetworkCredential("user", "password"); client.EnableSsl = true; client.Send(m); //csharp/7761