oasys::SMTPClient Class Reference

#include <SMTPClient.h>

Inheritance diagram for oasys::SMTPClient:

oasys::TCPClient oasys::IPClient oasys::IPSocket oasys::IOClient oasys::Logger oasys::IOHandlerBase oasys::IOHandlerBase List of all members.

Detailed Description

Class to wrap a client socket to an smtp server.

Definition at line 29 of file SMTPClient.h.

Public Member Functions

 SMTPClient (const char *logpath="/oasys/smtp/client")
 Default constructor.
int send_message (SMTPSender *sender)
 Send a message using the SMTPSender interface.

Protected Attributes

BufferedInput in_
BufferedOutput out_
SMTP smtp_
bool first_session_


Constructor & Destructor Documentation

oasys::SMTPClient::SMTPClient ( const char *  logpath = "/oasys/smtp/client"  ) 

Default constructor.

Definition at line 22 of file SMTPClient.cc.


Member Function Documentation

int oasys::SMTPClient::send_message ( SMTPSender sender  ) 

Send a message using the SMTPSender interface.

Returns 0 on success, an SMTP error code on failure.

Definition at line 31 of file SMTPClient.cc.

References oasys::SMTP::client_session(), first_session_, and smtp_.


Member Data Documentation

BufferedInput oasys::SMTPClient::in_ [protected]

Definition at line 39 of file SMTPClient.h.

BufferedOutput oasys::SMTPClient::out_ [protected]

Definition at line 40 of file SMTPClient.h.

SMTP oasys::SMTPClient::smtp_ [protected]

Definition at line 41 of file SMTPClient.h.

Referenced by send_message().

bool oasys::SMTPClient::first_session_ [protected]

Definition at line 42 of file SMTPClient.h.

Referenced by send_message().


The documentation for this class was generated from the following files:
Generated on Thu Jun 7 12:54:36 2007 for DTN Reference Implementation by  doxygen 1.5.1