property Message.To as String

Retrieves or sets a value that indicates the recipient's email address, or a list of recipient's email addresses separated by commas.

 TypeDescription 
   String A String expression that indicates the recipient's email addresses separated by commas.  

Use the To property to specify the email address where you want to send the email message. You can set the To property, by using To optional parameter of the Send method. 

The recipient's email addresses should be separated by commas, like in the following sample:

Private Sub Form_Load()
    Dim m As Message
    Set m = Runtime1.NewMessage
    If (0 = m.Send("me", "mike1@Unknown2.com,mike2@Unknown2.com,mike3@Unknown2.com", "Hello")) Then
        MsgBox "The message was delivered OK."
    End If
End Sub

Send comments on this topic.
© 1999-2007 Exontrol Inc, Software. All rights reserved.