Add a 'To' recipient to a hzEmail instance using a formal email address (hzEmaddr) as argument
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hzEmail::AddRecipient | (hzEmaddr&,) |
Declared in file: hzMailer.h
Defined in file : hzMailer.cpp
Function Logic:
Function body:
hzEcode hzEmail::AddRecipient (hzEmaddr& ema)
{
// Category: Mail Composition
//
// Add a 'To' recipient to a hzEmail instance using a formal email address (hzEmaddr) as argument
//
// Arguments: 1) ema Email address to be added to recipient list
//
// Returns: E_ARGUMENT If the supplied recipient email address is not set
// E_OK If the recipient is added
if (!ema)
return E_ARGUMENT ;
return m_Recipients.Add(ema) ;
}