Wt  3.7.1
Public Member Functions | List of all members
Wt::Mail::Mailbox Class Reference

An email sender or recipient mailbox. More...

#include <Wt/Mail/Mailbox>

Public Member Functions

 Mailbox ()
 Default constructor. More...
 Mailbox (const std::string &address)
 Constructs a mailbox using an address. More...
 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. More...
const WStringdisplayName () const
 Returns the display name.

Detailed Description

An email sender or recipient mailbox.

Constructor & Destructor Documentation

◆ Mailbox() [1/2]

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

Default constructor.

Creates an empty() mailbox.

◆ Mailbox() [2/2]

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

◆ address()

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

Returns the email address.

Returns "" if empty()

Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13