i made a code that i can send an email to gmail.com with c# and it is working very well. Now i want to put my datagridview1 in the email body and send it. Somone can show me
You need to iterate over the Rows collection of your datagridview, extract the values and assign to your mail.Body. A crude example: -
Rows
mail.Body
StringBuilder sb = new StringBuilder(); foreach (DataRow row in datagridview1.Rows) { sb.AppendLine(row["ROW NAME"].ToString()); } mail.Body = sb.ToString();