join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::SmtpSender Class Reference

mail sender. More...

#include <smtp_message.hpp>

Inheritance diagram for join::SmtpSender:

Public Member Functions

 SmtpSender ()=default
 create the SmtpSender instance.
 
 SmtpSender (const std::string &address)
 create the SmtpSender instance.
 
 SmtpSender (const std::string &address, const std::string &name)
 create the SmtpSender instance.
 
 SmtpSender (const SmtpSender &other)
 create the SmtpSender instance by copy.
 
SmtpSenderoperator= (const SmtpSender &other)
 assign the SmtpSender instance by copy.
 
 SmtpSender (SmtpSender &&other)
 create the SmtpSender instance by move.
 
SmtpSenderoperator= (SmtpSender &&other)
 assign the SmtpSender instance by move.
 
virtual ~SmtpSender ()=default
 destroy the SmtpSender instance.
 
void address (const std::string &addr)
 set address.
 
const std::string & address () const
 get address.
 
void realName (const std::string &name)
 set real name.
 
const std::string & realName () const
 get real name.
 
bool empty () const
 check if empty.
 

Protected Attributes

std::string _address
 address.
 
std::string _name
 name.
 

Detailed Description

mail sender.

Constructor & Destructor Documentation

◆ SmtpSender() [1/5]

join::SmtpSender::SmtpSender ( )
default

create the SmtpSender instance.

◆ SmtpSender() [2/5]

SmtpSender::SmtpSender ( const std::string & address)

create the SmtpSender instance.

Parameters
addressrecipient address.

◆ SmtpSender() [3/5]

SmtpSender::SmtpSender ( const std::string & address,
const std::string & name )

create the SmtpSender instance.

Parameters
addressrecipient address.
namerecipient name.

◆ SmtpSender() [4/5]

SmtpSender::SmtpSender ( const SmtpSender & other)

create the SmtpSender instance by copy.

Parameters
otherrequest to copy.

◆ SmtpSender() [5/5]

SmtpSender::SmtpSender ( SmtpSender && other)

create the SmtpSender instance by move.

Parameters
otherrequest to move.

◆ ~SmtpSender()

virtual join::SmtpSender::~SmtpSender ( )
virtualdefault

destroy the SmtpSender instance.

Member Function Documentation

◆ address() [1/2]

const std::string & SmtpSender::address ( ) const

get address.

Returns
address.

◆ address() [2/2]

void SmtpSender::address ( const std::string & addr)

set address.

Parameters
addraddress.

◆ empty()

bool SmtpSender::empty ( ) const

check if empty.

Returns
true if if empty, false otherwise.

◆ operator=() [1/2]

SmtpSender & SmtpSender::operator= ( const SmtpSender & other)

assign the SmtpSender instance by copy.

Parameters
otherrequest to copy.
Returns
a reference of the current object.

◆ operator=() [2/2]

SmtpSender & SmtpSender::operator= ( SmtpSender && other)

assign the SmtpSender instance by move.

Parameters
otherrequest to move.
Returns
a reference of the current object.

◆ realName() [1/2]

const std::string & SmtpSender::realName ( ) const

get real name.

Returns
real name.

◆ realName() [2/2]

void SmtpSender::realName ( const std::string & name)

set real name.

Parameters
namereal name.

Member Data Documentation

◆ _address

std::string join::SmtpSender::_address
protected

address.

◆ _name

std::string join::SmtpSender::_name
protected

name.


The documentation for this class was generated from the following files: