Upravit

Sdílet prostřednictvím


MailEnvelope2.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

The subject line.

Implements

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 Outlook.

Applies to