Sub getemailaddr(emails As List)
Try
Dim smtp As SMTP
smtp.Initialize("*******.co.za",465,"******.co.za","************","smtpx")
smtp.HtmlBody = True
smtp.UseSSL = True
smtp.Body = htmlMessage.HtmlText
Log(emails.Size)
For x = 0 To emails.Size-1
smtp.Body = htmlMessage.HtmlText
smtp.Subject = "Reminder "
Dim emailinfo() As Object = emails.Get(x)
smtp.To.Add(emailinfo(0))
lblMessageSent.Text="Message Sent to "&emailinfo(0)
smtp.Send
Wait For smtpx_MessageSent(Success As Boolean)
Next
Catch
Log(LastException)
End Try
End Sub