MailEnvelope2.Intro Property

Definition

Gets or sets the introduction in the body of the e-mail message.

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

Property Value

The introduction in the body of the e-mail message.

Examples

The following example sets a reference to the MailEnvelope2 object, sets envelope properties, and then displays the e-mail envelope.

MailEnvelope2 myEnv = 
   (MailEnvelope2)thisApplication.ActiveWindow.MailEnvelope;
myEnv.To = "someone@example.com";
myEnv.<span class="label">CC</span> = "someone@example.com";
myEnv.BCC = "someone@example.com";
myEnv.Subject = "Test e-mail message";
myEnv.<span class="label">Intro</span> = "This is the InfoPath form you requested.";

// Display form with e-mail envelope.
 myEnv.Visible = true;

Remarks

Because the Intro property is new to Microsoft InfoPath, you must declare and cast to the MailEnvelope2 type to access this property. For more information, see How to: Use Object Model Members That Are Not Compatible with InfoPath 2003.

Applies to