Library: Net
Package: Mail
Header: Poco/Net/MailRecipient.h
The recipient of an e-mail message.
A recipient has a type (primary recipient, carbon-copy recipient, blind-carbon-copy recipient), an e-mail address and an optional real name.
Member Functions: getAddress, getRealName, getType, operator =, setAddress, setRealName, setType, swap
Creates an empty MailRecipient.
MailRecipient(
const MailRecipient & recipient
);
Creates a MailRecipient by copying another one.
MailRecipient(
RecipientType type,
const std::string & address
);
Creates a MailRecipient of the given type.
MailRecipient(
RecipientType type,
const std::string & address,
const std::string & realName
);
Creates a MailRecipient of the given type.
~MailRecipient();
Destroys the MailRecipient.
const std::string & getAddress() const;
Returns the address of the recipient.
const std::string & getRealName() const;
Returns the real name of the recipient.
RecipientType getType() const;
Returns the type of the recipient.
MailRecipient & operator = (
const MailRecipient & recipient
);
Assigns another recipient.
void setAddress(
const std::string & address
);
Sets the address of the recipient.
void setRealName(
const std::string & realName
);
Sets the real name of the recipient.
void setType(
RecipientType type
);
Sets the type of the recipient.
void swap(
MailRecipient & recipient
);
Exchanges the content of two recipients.