Public Types | Public Member Functions | Protected Member Functions

zeus::TEMail Class Reference

#include <EMail.h>

Inheritance diagram for zeus::TEMail:
zeus::TZObject zeus::IZUnknown

List of all members.

Public Types

enum  EReceiverType { etNormal = 0, etCC = 1, etBCC = 2 }

Public Member Functions

 TEMail (const TString &rSenderAddress)
void addRecipient (const TString &rRecipientAddress, EReceiverType eType=etNormal)
void addRecipient (const TEMailAddress &rRecipientAddress, EReceiverType eType=etNormal)
void clearRecipientList (EReceiverType eType=etNormal)
TString formatMessage () const
TString getDate () const
const TEMailAddressgetSender () const
const TSingleLinkedList
< TEMailAddress > & 
getRecipients () const
const TSingleLinkedList
< TEMailAddress > & 
getCCRecipients () const
const TSingleLinkedList
< TEMailAddress > & 
getBCCRecipients () const
void setSubject (const TString &rSubject)
void setTextBody (const TString &rBody)

Protected Member Functions

virtual ~TEMail ()

Detailed Description

The email class implements the container of a e-mail


Member Enumeration Documentation

Type of receiver

Enumerator:
etNormal 
etCC 
etBCC 

Constructor & Destructor Documentation

TEMail::TEMail ( const TString rSenderAddress )

creates an email

Parameters:
rSenderAddress: address of the sender
TEMail::~TEMail (  ) [protected, virtual]

destroys the email


Member Function Documentation

void zeus::TEMail::addRecipient ( const TString rRecipientAddress,
EReceiverType  eType = etNormal 
) [inline]

Adds a recipient to the list

Parameters:
rRecipientAddress: address of the recipient
void zeus::TEMail::addRecipient ( const TEMailAddress rRecipientAddress,
EReceiverType  eType = etNormal 
) [inline]

Adds a recipient to the list

Parameters:
rRecipientAddress: address of the recipient
eType: type of recipient list (normal, cc or bcc)
void zeus::TEMail::clearRecipientList ( EReceiverType  eType = etNormal ) [inline]

clears the recipient list

Parameters:
eType: type of recipient list (normal, cc or bcc)
TString TEMail::formatMessage (  ) const

Formats the message for the SMTP data sending. The message ends with the termination charachters "<CRLF>.<CRLF>"

m_lstCCRecipients.isEmpty()

const TSingleLinkedList< TEMailAddress > & zeus::TEMail::getBCCRecipients (  ) const [inline]

returns all blind carpon copy recipients

const TSingleLinkedList< TEMailAddress > & zeus::TEMail::getCCRecipients (  ) const [inline]

returns all carpon copy recipients

TString zeus::TEMail::getDate (  ) const [inline]

returns the date

const TSingleLinkedList< TEMailAddress > & zeus::TEMail::getRecipients (  ) const [inline]

returns all recipients

const TEMailAddress & zeus::TEMail::getSender (  ) const [inline]

returns the sender

void zeus::TEMail::setSubject ( const TString rSubject ) [inline]

sets the subject of the message

Parameters:
rSubject: subject of the message
void zeus::TEMail::setTextBody ( const TString rBody ) [inline]

sets the text body

Parameters:
rBody: message body

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


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:28