Purpose
Sets the recipient's user name for a message.
Multiple recipients are supported by treating this attribute as an array. Backwards compatibility to previous code is retained.
Note
The To attribute supports FirstClass mail lists, but does not currently support the use of gateways. If the user name is invalid, the message will fail. This attribute must be set or the message will not be delivered.
Syntax
Message.To [(RecipientNumber)] = "UserName"
RecipientNumber |
Used for multiple recipients. |
UserName |
Any user or conference name with send privileges to the recipient. |
Examples
Sub Main()
Dim MyMessage As Email
...
MyMessage.To = "FCAS Demo"
MyMessage.Send
End Sub
In the following example, (1) designates the zero-indexed number of the recipient. No (x) means 0, as does (0).
Sub Main()
dim msg as EMail
msg.To="Administrator"
msg.To(1)="Joe User"
msg.CC="John Doe"
msg.CC(1)="Jane Doe"
msg.BCC="John Smith"
msg.BCC(1)="Joe Schmoe"
msg.From="Administrator"
msg.Subject="Multiple Recipient Test"
msg.Send
End Sub
|