MailEnvelope.Subject Property

Definition

Gets or sets the subject value used in the MailEnvelopeObject object that is associated with a WindowObject object.

public:
 property System::String ^ Subject { System::String ^ get(); void set(System::String ^ value); };
public string Subject { get; set; }
member this.Subject : string with get, set
Public Property Subject As String

Property Value

Examples

MailEnvelopeObject myEnv = thisApplication.ActiveWindow.MailEnvelope;
myEnv.To = "someone@example.com";
myEnv.CC = "someone@example.com";
myEnv.BCC = "someone@example.com";
myEnv.<span class="label">Subject</span> = "Test e-mail message";

Remarks

The MailEnvelope object does not support the programmatic creation of the body of an e-mail message. Users enter the body text after the e-mail message is displayed in Microsoft Office Outlook 2003.

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.

Applies to