I am loading a GridView with several records from the form, a field is E-mail, at the end of the process I send an email to the addresses added in that column. The problem is that the E-mail field is usually repeated, so the mail is sent as many times as it is repeated in the GridView to the same recipient.
I'm trying to avoid it this way but it does not work:
For Each row As GridViewRow In GridView1.Rows
If row.Cells(0).Text = row.Cells(0).Text Then
'Duplicado
Else
'Enviar Correo
End If
Next