Dim smtp As SMTP
smtp.Initialize("...", 587, "...", "...", "smtp")
smtp.To.Add("[email protected]")
smtp.Subject = "subject"
Dim html As String = File.ReadString(...)
Dim attachments As List
attachments.Initialize
attachments.Add(Array(File.DirAssets, "some file"))
attachments.Add(Array("C:\Users\H\Documents", "another file"))
CreateHtmlAndAttachmentsBody(smtp, html, attachments)
smtp.Send
Wait For smtp_MessageSent(Success As Boolean)
Log(Success)