Posted on: 4/13/2014 1:13:20 PM | Views : 408

I want to send GridView data thru email.
My this email code is not working but not showing any error, how i fix this and thru this how I send the Gridview data to someone. Code:
protected void SubmitEmail_Click(object sender, EventArgs e) { try { MailMessage mailMessage = new MailMessage(); mailMessage.To.Add("all@company3.com"); mailMessage.From = new MailAddress("email@company3.com"); mailMessage.Subject = "Aswaq Net Test"; mailMessage.Body = "Dear All,\n\nThis is Test Email From Aswaq.net!"; SmtpClient smtpClient = new SmtpClient("cisco.company3.com"); smtpClient.Send(mailMessage); Response.Write("E-mail sent!"); } catch (Exception ex) { Response.Write("Could not send the e-mail - erro ...

Go to the complete details ...