From Xojo Documentation
The queue of messages that is waiting to be sent.
This is an array of which the 0th element is the next message to be sent. When a message is sent, it is removed from the queue and passed to the MessageSent event. To append a message to the queue, use the Append method. To remove a message, use the Remove method.
Send a simple email:
// set up the socket
Socket1.Address = "smtp.myserver.com"
Socket1.Port = 25
Socket1.UserName = "<username>"
Socket1.Password = "<password>"
// populate the email message
mail = New EmailMessage
mail.FromAddress = "firstname.lastname@example.org"
mail.Subject = "My Subject"
mail.BodyPlainText = "Hello!"
// send the email