Reading Excel and write into gmail body

Fine
to get the required column we want we can use this expression
yourdatatable = yourdatatable.DefaultView.ToTable(False,“columnname1”,“columnname2”).Copytodatatable()

then to send them as mail with table attached in body
this thread would help you resolve this

Cheers @Saran

1 Like