Set the subject of the email.
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hzEmail::SetSubject | (const char*,) |
Declared in file: hzMailer.h
Defined in file : hzMailer.cpp
Function Logic:
Function body:
hzEcode hzEmail::SetSubject (const char* cpSubject)
{
// Category: Mail Composition
//
// Set the subject of the email.
//
// Arguments: 1) cpSubject Subject matter
//
// Returns: E_ARGUMENT If the subject matter is not supplied
// E_OK If the subject is set
if (!cpSubject || !cpSubject[0])
return E_ARGUMENT ;
m_Subject = cpSubject ;
return E_OK ;
}