AddRecipient Method  
 

Add an address to the recipient list for the current message.

Syntax

object.AddRecipient( Address )

Parameters

Address
A string value that specifies the email address of a recipient.

Return Value

A value of zero is returned if the operation was successful, otherwise a non-zero error code is returned which indicates the cause of the failure.

Remarks

The AddRecipient method adds the specified address to the recipient list for the current message. This method should be called after the message transaction has begun with a call to the CreateMessage method. Most servers impose a limit of approximately 100 recipient addresses that will be accepted for a single message.

See Also

AppendMessage Method, CloseMessage Method, CreateMessage Method