Wt: Wt::Mail::Mailbox Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions
Wt::Mail::Mailbox Class Reference
SMTP client library (Wt::Mail)

An email sender or recipient mailbox. More...

`#include <Wt/Mail/Mailbox>`

List of all members.

## Public Member Functions
| Mailbox ()
| Default constructor.
| Mailbox (const std::string &address)
| Constructs a mailbox using an address.
| Mailbox (const std::string &address, const WString &displayName)
| Constructs a mailbox using an address and display name.
bool | empty () const
| Returns whether the mailbox is empty.
const std::string & | address () const
| Returns the email address.
const WString & | displayName () const
| Returns the display name.

## Detailed Description

An email sender or recipient mailbox.

## Constructor & Destructor Documentation

Wt::Mail::Mailbox::Mailbox | ( |  | ) |

Default constructor.

Creates an empty() mailbox.

Wt::Mail::Mailbox::Mailbox | ( | const std::string & | address | ) |

Constructs a mailbox using an address.

Constructs a mailbox which is only defined by an email address (i.e. without a display name).

## Member Function Documentation

const std::string& Wt::Mail::Mailbox::address | ( |  | ) | const

Returns the email address.

Returns "" if empty()

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator