MAIL Class Reference

#include <mi32/mail.h>

List of all members.

Public Member Functions

 MAIL (const MISTRING &recipient, const MISTRING &subject, const MISTRING &body, const MISTRING &sourcename, const MISTRING &sourceaddress)
 MAIL (const MISTRING &recipient, const MISTRING &subject, const MISTRING &body)
 MAIL ()
 ~MAIL ()
void AddAttachment (FILEPATH &attachment, MISTRING *attachmentname=0)
ERRVALUE OpenMailClient ()
ERRVALUE SendMail ()
void SetAuthenticate (const MISTRING &username, const MISTRING &password)
void SetBody (MISTRING &body)
void SetOutgoingServer (const MISTRING &server, INT32 port)
void SetRecipient (MISTRING &recipient)
void SetSourceAddress (MISTRING &sourceaddress)
void SetSourceName (MISTRING &sourcename)
void SetSubject (MISTRING &subject)

Static Public Member Functions

static MISTRING MakeRFCSMTPCompatible (const MISTRING &string)

Constructor & Destructor Documentation

MAIL::MAIL (  ) 

default constructor

MAIL::MAIL ( const MISTRING recipient,
const MISTRING subject,
const MISTRING body 
)

constructor that will set up the email fields

MAIL::MAIL ( const MISTRING recipient,
const MISTRING subject,
const MISTRING body,
const MISTRING sourcename,
const MISTRING sourceaddress 
)

constructor that will set up the email fields

MAIL::~MAIL (  ) 

default destructor


Member Function Documentation

void MAIL::AddAttachment ( FILEPATH attachment,
MISTRING attachmentname = 0 
)

adds an additional attachment to the email will not function with some mail clients warning will be given saying so if failed

static MISTRING MAIL::MakeRFCSMTPCompatible ( const MISTRING string  )  [static]

will make a string RFC compatible, so it could be sent in an email.

does checks like making sure that a single period is not on a line, and makes sure no line is longer than 1000 characters

ERRVALUE MAIL::OpenMailClient (  ) 

launches the mail client using the settings already specified

ERRVALUE MAIL::SendMail (  ) 

send the email directly using the smtp format

void MAIL::SetAuthenticate ( const MISTRING username,
const MISTRING password 
) [inline]
void MAIL::SetBody ( MISTRING body  ) 

sets the body of the email

void MAIL::SetOutgoingServer ( const MISTRING server,
INT32  port 
) [inline]
void MAIL::SetRecipient ( MISTRING recipient  ) 

sets the recipient of the email, only 1 is allowed

void MAIL::SetSourceAddress ( MISTRING sourceaddress  ) 

sets the email address of the from field of the email

void MAIL::SetSourceName ( MISTRING sourcename  ) 

sets the name of the from field of the email

void MAIL::SetSubject ( MISTRING subject  ) 

sets the subject of the email


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

Generated on Sun Oct 7 21:33:33 2012 for TNTsdk 2012 by  doxygen 1.6.1