sptk2 logo
SPTK Home Page

sptk::CMailMessageBody Class Reference
[Utility Classes]

Mail message body text. More...

#include <CMailMessageBody.h>

List of all members.

Public Member Functions

 CMailMessageBody ()
 Default constructor.
void text (const std::string &messageText, bool smtp)
 Sets the message text.
CMailMessageType type ()
 Returns the message body type.
const std::string & text () const
 Returns the plain text version of the message.
const std::string & html () const
 Returns the html version of the message (if presented).


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)


Member Function Documentation

void sptk::CMailMessageBody::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:
messageText const std::string& messageText, the text of the message
smtp bool, special processing for smtp

Referenced by sptk::CBaseMailConnect::body().


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

Mon Mar 5 11:56:05 2012: SPTK 3.5.7