MailEnvelope2.To Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the send-to value used in the MailEnvelopeObject object that is associated with a WindowObject object.
public:
property System::String ^ To { System::String ^ get(); void set(System::String ^ value); };
public string To { get; set; }
member this.To : string with get, set
Public Property To As String
Property Value
The recipient (To) addresses.
Implements
Examples
The following example sets a reference to the MailEnvelopeObject object, sets envelope properties, and then displays the e-mail envelope.
MailEnvelopeObject myEnv = thisApplication.ActiveWindow.MailEnvelope;
myEnv.<span class="label">To</span> = "someone@example.com";
myEnv.CC = "someone@example.com";
myEnv.BCC = "someone@example.com";
myEnv.Subject = "Test e-mail message";
// Display form with e-mail envelope.
myEnv.Visible = true;
Remarks
The values set for the To property should be a string of valid e-mail addresses. You can specify multiple e-mail addresses by using a semi-colon (";") between each of them.
Important: This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.