If lvTo.Size>0 Then
For i=0 To lvTo.Size-1
Dim splt() As String = Regex.Split("\|",lvTo.GetItem(i))
ProgressDialogShow2("Please wait . . .Send email to " & splt(0) & "/" & splt(2) , True)
SMTP1.to.Add(splt(2))
SMTP1.bcc.Add(edtFrom.Text)
SMTP1.Subject = edtJudul.Text.Replace("[block]", splt(1) & "(" & splt(0) & ")")
If edtAt.Text<>"" Then
If File.Exists(strfolder,strfile) Then
SMTP1.AddAttachment(strfolder,strfile )
End If
End If
SMTP1.Body = edtPesan.Text.Replace("[block]", splt(1) & "(" & splt(0) & ")")
SMTP1.Send
Next
End If