MailEnvelope.Subject Property
Gets or sets the subject value used in the MailEnvelopeObject object that is associated with a WindowObject object.
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
Property Subject As String
Get
Set
'Usage
Dim instance As MailEnvelope
Dim value As String
value = instance.Subject
instance.Subject = value
string Subject { get; set; }
Property Value
Type: System.String
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.
Examples
MailEnvelopeObject myEnv = thisApplication.ActiveWindow.MailEnvelope;
myEnv.To = "someone@example.com";
myEnv.CC = "someone@example.com";
myEnv.BCC = "someone@example.com";
myEnv.Subject = "Test e-mail message";