Sub App_Start
Form1.Show
EmailSender.New1
Accounts() = EmailSender.GetAccounts 'Returns the names of all the
accounts.
s = "Accounts list: "
For i = 0 to ArrayLen(Accounts()) - 1
s = s & crlf & Accounts(i)
Next
Msgbox(s)
Message.New1
Message.Subject = "Hello World!!!"
Message.AddAttachment(AppPath & "\some
file.txt") 'Adds an
attachment.
EmailSender.Send("Form1",accounts(0),Message.Value) 'Sends the
message using the first account.
End Sub