MAPI_AddAddress()

Examples


The MAPI_AddAddress() function adds an address to the specified address list.

Syntax

MAPI_AddAddress(address_list_ID, mail_type, recipient_name, address)

Parameters

address_list_ID – The ID of the address list to which an address is being added.

mail_type – An integer specifying how the message is to be sent to the recipient. Use one of the following constants:

[spacer]

Constant

Description

MAIL_TO

Send the message directly to the recipient.

MAIL_CC

Send the message to the recipient as a carbon copy.

MAIL_BCC

Send the message to the recipient as a blind carbon copy.

MAIL_REPLY_TO

Send the message reply to the recipient.


recipient_name – A string specifying the name of the recipient. The name can be up to 80 characters.

address – A string specifying the e-mail address of the recipient. The address can be up to 255 characters. The address should also specify the transport protocol to use for the message, such as SMTP (Simple Mail Transport Protocol). Refer to the example for more information.

Return value

A boolean. True indicates the address was added to the list, while false indicates it was not.


Documentation Feedback