INetMapiClient.ShowMessageUI

Syntax

ShowMessageUI: Boolean;

Description

The ShowMessageUI property determines whether the application window of the mail client, using which the email message is sent, is displayed.

Comments

The property is set to False by default, the message is sent automatically.

If the property is set to True, the sent email message is opened with the mail client application.

Example

Add a link to the Net system assembly.

Sub UserProc;
Var
    Msg: INetMapiMessage;
    Client: INetMapiClient;
Begin
    Client := 
New NetMapiClient.Create;
    Msg := 
New NetMapiMessage.Create;
    Msg.From_ := 
"ivanov@server.ru";
    Msg.To_.Add(
"petrov@mail.ru");
    Msg.Subject := 
"Test message";
    Msg.Body := 
"Message text";
    Client.Message := Msg;
    Client.ShowMessageUI := 
True;
    Client.Send;
End Sub UserProc;

After executing the example an email is created. This message is opened with the application installed in the operating system as a default mail client.

See also:

INetMapiClient