ShowMessageUI: Boolean;
The ShowMessageUI property determines whether the application window of the mail client, using which the email message is sent, is displayed.
By default the property is set to False, the message sending is performed automatically.
In case the property is set to True, the sent email message is opened with the mail client application.
Add 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 email";
Msg.Body := "Email text";
Client.Message := Msg;
Client.ShowMessageUI := True;
Client.Send;
End Sub UserProc;
After executing the example an email is created. The letter is opened with the application installed in the operating system as a default mail client.
See also: