NAWA 0.9
Web Application Framework for C++
nawa::mail::SimpleEmail Class Reference

#include <nawa/mail/Email/impl/SimpleEmail.h>

Inherits nawa::mail::Email.

Public Member Functions

 ~SimpleEmail () override
 
 SimpleEmail ()
 
 SimpleEmail (SimpleEmail const &other)
 
SimpleEmailoperator= (const SimpleEmail &other)
 
 SimpleEmail (SimpleEmail &&other) noexcept
 
SimpleEmailoperator= (SimpleEmail &&other) noexcept
 
std::string & text () noexcept
 
std::string const & text () const noexcept
 
SimpleEmailtext (std::string value) noexcept
 
bool & quotedPrintableEncode () noexcept
 
bool quotedPrintableEncode () const noexcept
 
SimpleEmailquotedPrintableEncode (bool value) noexcept
 
std::string getRaw (std::shared_ptr< ReplacementRules > const &replacementRules) const override
 
- Public Member Functions inherited from nawa::mail::Email
virtual ~Email ()
 
 Email ()
 
 Email (Email const &other)
 
Emailoperator= (const Email &other)
 
 Email (Email &&other) noexcept
 
Emailoperator= (Email &&other) noexcept
 
HeadersMapheaders () noexcept
 
HeadersMap const & headers () const noexcept
 
Emailheaders (HeadersMap value) noexcept
 

Additional Inherited Members

- Public Types inherited from nawa::mail::Email
using HeadersMap = std::unordered_map< std::string, std::string >
 

Detailed Description

Structure representing a basic email (just headers and payload, excluding the envelope). Please remember to also set the headers in the headers map of the base class Email.

Definition at line 36 of file SimpleEmail.h.

Constructor & Destructor Documentation

◆ ~SimpleEmail()

nawa::mail::SimpleEmail::~SimpleEmail ( )
override

◆ SimpleEmail() [1/3]

nawa::mail::SimpleEmail::SimpleEmail ( )

◆ SimpleEmail() [2/3]

nawa::mail::SimpleEmail::SimpleEmail ( SimpleEmail const &  other)

◆ SimpleEmail() [3/3]

nawa::mail::SimpleEmail::SimpleEmail ( SimpleEmail &&  other)
noexcept

Member Function Documentation

◆ operator=() [1/2]

SimpleEmail & nawa::mail::SimpleEmail::operator= ( const SimpleEmail other)

◆ operator=() [2/2]

SimpleEmail & nawa::mail::SimpleEmail::operator= ( SimpleEmail &&  other)
noexcept

◆ text() [1/3]

std::string & nawa::mail::SimpleEmail::text ( )
noexcept

The text part of the email.

◆ text() [2/3]

std::string const & nawa::mail::SimpleEmail::text ( ) const
noexcept

◆ text() [3/3]

SimpleEmail & nawa::mail::SimpleEmail::text ( std::string  value)
noexcept

◆ quotedPrintableEncode() [1/3]

bool & nawa::mail::SimpleEmail::quotedPrintableEncode ( )
noexcept

Whether to apply quoted-printable encoding to the content of the email (recommended). This will also take care of the line lengths and set the header Content-Transfer-Encoding. Default: true.

◆ quotedPrintableEncode() [2/3]

bool nawa::mail::SimpleEmail::quotedPrintableEncode ( ) const
noexcept

◆ quotedPrintableEncode() [3/3]

SimpleEmail & nawa::mail::SimpleEmail::quotedPrintableEncode ( bool  value)
noexcept

◆ getRaw()

std::string mail::SimpleEmail::getRaw ( std::shared_ptr< ReplacementRules > const &  replacementRules) const
overridevirtual

Get the raw source of the email.

Parameters
replacementRulesReplacements that shall be applied in all suitable (body) parts of the email.
Returns
Raw source of the email.

Implements nawa::mail::Email.

Definition at line 53 of file SimpleEmail.cpp.


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