INetMapiMessage.CC

Syntax

CC: IStringList;

Description

The CC property returns the collection of the email addresses, to which the copy of email message is sent.

Example

Sub Main;

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.CC.Add("user1@mail.ru");

Msg.Subject := "Test message";

Msg.Body := "Message text";

Client.Message := Msg;

Client.Send;

End Sub Main;

After executing the example the email is sent using the application installed in the operating system and used as a default mail client. The message is sent to the address petrov@mail.ru. The message copy is sent to the address user1@mail.ru.

See also:

INetMapiMessage