DomainPlug-insDocumentation
Public Member Functions | Static Public Member Functions | Data Fields
MailMessage Struct Reference

#include <MailMessage.hpp>

Public Member Functions

 MailMessage ()
 MailMessage (Str input)
virtual ~MailMessage ()
const Str & getFromName (void) const
void setFromName (const Str &FromName)
void setFromName (const Str &FromName, const Str &toEnc)
const Str & getFromAddr (void) const
void setFromAddr (const Str &FromAddr)
const Str & getToName (void) const
void setToName (const Str &ToName)
void setToName (const Str &ToName, const Str &toEnc)
const Str & getToAddr (void) const
void setToAddr (const Str &ToAddr)
int getDate (void) const
void setDate (int Date)
const Str & getSubject (void) const
void setSubject (const Str &Subject)
void setSubject (const Str &Subject, const Str &toEnc)
const Str & getCcName (void) const
void setCcName (const Str &CcName)
const Str & getCcAddr (void) const
void setCcAddr (const Str &CcAddr)
const Str & getBccName (void) const
void setBccName (const Str &BccName)
const Str & getBccAddr (void) const
void setBccAddr (const Str &BccAddr)
const Str & getBody (void) const
void setBody (const Str &Body)
const Str & getFullHeader (void) const
void setFullHeader (const Str &FullHeader)
const Str & getContentType (void) const
void setContentType (const Str &ContentType)
const Str & getReportType (void) const
void setReportType (const Str &ReportType)
const Str & getCharset (void) const
void setCharset (const Str &Charset)
void setContentTransferEncoding (int)
int getContentTransferEncoding (void)
size_t getAttachments (void) const
MailAttachment getAttachment (size_t index) const
void addAttachment (const MailAttachment &Attachment)
 adding attachment to email
std::multimap< Str, Str > getCustomHeaders (void) const
Str encodeUTFStr (Str source, Str toEnc)
Str encodeUTFStrPart (Str part, Str toEnc)
bool is_line_ascii (const Str &in)
int count_quoted_size (const Str &in)
int count_base64_size (const Str &in)
void parseMail (struct mailmime *mime)
 end of public interface methods
void setFields (struct mailimf_fields *fields)
struct mailimf_fields * parseFields (void)
int getMailMimePartType (struct mailmime *mime)
int getMailMimeMainType (struct mailmime *mime)
Str getMailMimeContentType (struct mailmime *mime)
int getMailMimeDiscreteType (struct mailmime *mime)
Str getMailMimeDiscreteTypeStr (struct mailmime *mime)
int getMailMimeCompositeType (struct mailmime *mime)
Str getMailMimeCompositeTypeStr (struct mailmime *mime)
void getAttachments (std::list< MailAttachment > &attachment, struct mailmime *mime)
void getAttachment (MailAttachment *Attachment, struct mailmime *mime_part)
struct mailimf_fields * buildFields (void)
struct mailmime * buildMessage (struct mailimf_fields *fields)
struct mailmime * buildBodyText (void)
struct mailmime * buildBodyAttachment (MailAttachment &attach)
Str stringify (void)
Int sendMail (Int collectorID, Int secureBody=0)

Static Public Member Functions

static Str decodeStr (const Str &str, const Str &code)
static Str decodeStrUTF8 (const Str &str)
static Str decodeStrElement (const Str &str, const Str &code)

Data Fields

Str FromName
 From Name.
Str FromAddr
 From Email address.
Str ToName
 To Name.
Str ToAddr
 to Email address
Str Subject
 Subject of email.
Str BccName
 Name of bcc.
Str BccAddr
 Address of bcc.
Str CcName
 Name of cc.
Str CcAddr
 Address cc.
Str ContentType
 content type
Str Charset
 char set
Str Body
 Body of email.
Str FullHeader
 Header of email.
Str ReportType
 Header of email, delivery failure status.
Str OriginSubject
 Original subject in UTF.
Str OriginFromName
Str OriginToName
int ContentTransferEncoding
auto_ptr< char > data_str
size_t data_len
int Date
std::list< MailAttachmentAttachments
std::list< std::pair< Str, Str > > CustomHeaders
std::list< MailBoxTOs
std::list< MailBoxBCCs
std::list< MailBoxCCs

Detailed Description

Mail Message


Constructor & Destructor Documentation

MailMessage::MailMessage ( void  )

Constructor

MailMessage::~MailMessage ( void  ) [virtual]

Member Function Documentation

struct mailmime * MailMessage::buildBodyAttachment ( MailAttachment attach) [read]
struct mailmime * MailMessage::buildBodyText ( void  ) [read]
struct mailimf_fields * MailMessage::buildFields ( void  ) [read]
struct mailmime * MailMessage::buildMessage ( struct mailimf_fields *  fields) [read]
int MailMessage::count_base64_size ( const Str &  in)
int MailMessage::count_quoted_size ( const Str &  in)
Str MailMessage::decodeStr ( const Str &  str,
const Str &  code 
) [static]
Str MailMessage::decodeStrElement ( const Str &  str,
const Str &  code 
) [static]
Str MailMessage::decodeStrUTF8 ( const Str &  str) [static]
Str MailMessage::encodeUTFStr ( Str  source,
Str  toEnc 
)
Str MailMessage::encodeUTFStrPart ( Str  part,
Str  toEnc 
)
void MailMessage::getAttachment ( MailAttachment Attachment,
struct mailmime *  mime_part 
)
void MailMessage::getAttachments ( std::list< MailAttachment > &  attachment,
struct mailmime *  mime 
)
int MailMessage::getMailMimeCompositeType ( struct mailmime *  mime)
Str MailMessage::getMailMimeCompositeTypeStr ( struct mailmime *  mime)
Str MailMessage::getMailMimeContentType ( struct mailmime *  mime)
int MailMessage::getMailMimeDiscreteType ( struct mailmime *  mime)
Str MailMessage::getMailMimeDiscreteTypeStr ( struct mailmime *  mime)
int MailMessage::getMailMimeMainType ( struct mailmime *  mime)
int MailMessage::getMailMimePartType ( struct mailmime *  mime)
bool MailMessage::is_line_ascii ( const Str &  in)
struct mailimf_fields * MailMessage::parseFields ( void  ) [read]
void MailMessage::parseMail ( struct mailmime *  mime)

end of public interface methods

void MailMessage::setFields ( struct mailimf_fields *  fields)

Field Documentation

Address of bcc.

Name of bcc.

std::list< MailBox > MailMessage::BCCs

Body of email.

Address cc.

Name of cc.

std::list< MailBox > MailMessage::CCs

char set

content type

std::list< std::pair<Str, Str> > MailMessage::CustomHeaders
auto_ptr< char > MailMessage::data_str

From Email address.

From Name.

Header of email.

Original subject in UTF.

Header of email, delivery failure status.

Subject of email.

to Email address

To Name.

std::list< MailBox > MailMessage::TOs

The documentation for this struct was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines