protected void RadGrid1_ItemUpdated(object sender, GridUpdatedEventArgs e) { if (Label19.Text != null && Label18.Text != null) { System.Net.Mail.MailMessage msgMail = new System.Net.Mail.MailMessage(); msgMail.Body = (" Dear ") + "<br/>" + "<br/>" + (" Kindly Be Noted That There Is a New Request Has Been Add From : ") + Label19.Text + "<br/>" + "<br/>" + ("Kindly Check "); msgMail.From = new MailAddress(""); msgMail.To.Add(DropDownList5.SelectedItem.Attributes.ToString()); msgMail.CC.Add(""); msgMail.Subject = (" Your Request Had Been : ") + Label18.Text; msgMail.IsBodyHtml = true; SmtpClient smtp = new SmtpClient(""); smtp.UseDefaultCredentials = false; NetworkCredential crdntl = new NetworkCredential(""); smtp.Credentials = crdntl; smtp.DeliveryMethod = SmtpDeliveryMethod.Network; smtp.Send(msgMail); }