sptk2 logo
SPTK Home Page
Public Member Functions | List of all members
sptk::MailMessageBody Class Reference

#include <MailMessageBody.h>

Public Member Functions

 MailMessageBody ()
 
void text (const std::string &messageText, bool smtp)
 
MailMessageType type () const
 
const std::string & text () const
 
const std::string & html () const
 

Detailed Description

Mail message body text

Contains the message text as plain text, or as an HTML text and stripped HTML text (where HTML tags removed)

Constructor & Destructor Documentation

◆ MailMessageBody()

sptk::MailMessageBody::MailMessageBody ( )
inline

Default constructor

References PLAIN_TEXT_MESSAGE.

Member Function Documentation

◆ html()

const std::string & sptk::MailMessageBody::html ( ) const
inline

Returns the html version of the message (if presented)

◆ text() [1/2]

const std::string & sptk::MailMessageBody::text ( ) const
inline

Returns the plain text version of the message

◆ text() [2/2]

void sptk::MailMessageBody::text ( const std::string &  messageText,
bool  smtp 
)

Sets the message text.

Tries to detect the HTML messages by searching HTML tag in the first 100 bytes of the message

Parameters
messageTextconst std::string& messageText, the text of the message
smtpbool, special processing for smtp

◆ type()

MailMessageType sptk::MailMessageBody::type ( ) const
inline

Returns the message body type


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

Fri Oct 14 2022 09:58:43: SPTK 5.4.1