SMTPTransport Class Reference

SMTP transport service. More...

Inheritance diagram for SMTPTransport:
Inheritance graph
[legend]
Collaboration diagram for SMTPTransport:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SMTPTransport (ref< session > sess, ref< security::authenticator > auth, const bool secured=false)
 ~SMTPTransport ()
const string getProtocolName () const
const serviceInfosgetInfos () const
void connect ()
bool isConnected () const
void disconnect ()
void noop ()
void send (const mailbox &expeditor, const mailboxList &recipients, utility::inputStream &is, const utility::stream::size_type size, utility::progressListener *progress=NULL)
bool isSecuredConnection () const
ref< connectionInfosgetConnectionInfos () const

Static Public Member Functions

static const serviceInfosgetInfosInstance ()

Detailed Description

SMTP transport service.


Constructor & Destructor Documentation

SMTPTransport ( ref< session sess,
ref< security::authenticator auth,
const bool  secured = false 
)
~SMTPTransport (  ) 

Member Function Documentation

void connect (  )  [virtual]
void disconnect (  )  [virtual]

Disconnect from service.

Implements service.

References SMTPTransport::isConnected().

Referenced by SMTPTransport::~SMTPTransport().

ref< connectionInfos > getConnectionInfos (  )  const [virtual]

Get information about the connection.

Returns:
information about the connection

Implements service.

const serviceInfos & getInfos (  )  const [virtual]

Return information about this service.

Returns:
information about the service

Implements service.

Reimplemented in SMTPSTransport.

const serviceInfos & getInfosInstance (  )  [static]

Reimplemented in SMTPSTransport.

const string getProtocolName (  )  const [virtual]

Return the protocol name of this service.

Returns:
protocol name

Implements service.

Reimplemented in SMTPSTransport.

bool isConnected (  )  const [virtual]

Test whether this service is connected.

Returns:
true if the service is connected, false otherwise

Implements service.

Referenced by SMTPTransport::connect(), SMTPTransport::disconnect(), SMTPTransport::noop(), SMTPTransport::send(), and SMTPTransport::~SMTPTransport().

bool isSecuredConnection (  )  const [virtual]

Check whether the connection is secured.

Returns:
true if the connection is secured, false otherwise

Implements service.

void noop (  )  [virtual]

Do nothing but ensure the server do not disconnect (for example, this can reset the auto-logout timer on the server, if one exists).

Implements service.

References SMTPTransport::isConnected().

void send ( const mailbox expeditor,
const mailboxList recipients,
utility::inputStream is,
const utility::stream::size_type  size,
utility::progressListener progress = NULL 
) [virtual]

Send a message over this transport service.

Parameters:
expeditor expeditor mailbox
recipients list of recipient mailboxes
is input stream provding message data (header + body)
size size of the message data
progress progress listener, or NULL if not used

Implements transport.

References vmime::utility::bufferedStreamCopy(), dotFilteredOutputStream::flush(), mailbox::getEmail(), mailboxList::getMailboxAt(), mailboxList::getMailboxCount(), SMTPTransport::isConnected(), mailbox::isEmpty(), and mailboxList::isEmpty().


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

Generated by  doxygen 1.6.2