Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWISmtpClient



Module

Networking Tools: Thread-hot Internet Classes (int library)

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Member Functions

Synopsis

#include <rw/toolpro/smtp.h>
RWISmtpClient client;

Required Libraries

thr, net, int, tls (and possibly std)

Description

RWSmtpClient provides low-level access to the SMTP client-side protocol. The names of the methods parallel the names of the protocol actions. An RWISmtpClient object maintains a finite state machine to enforce correct SMTP protocol action ordering. In the case of misordered method invocation, an RWxmsg exception is thrown.

All client methods return RWIOUResults redeemable for a particular type of RWISmtpReply. RWISmtpReply and its subclass RWISmtpDataReply contain an encapsulation of standard SMTP protocol reply messages. RWISmtpDataReply returns additional data-related information.

RWISmtpClient objects are lightweight. They are implemented using the interface-implementation pattern. The RWISmtpClient itself is really a handle to an implementation that performs the protocol interaction.

Example

Public Constructors

RWISmtpClient();

Public Member Functions

RWIOUResult<RWISmtpReply>
connect(const RWCString& host, int port=25); 
RWIOUResult<RWISmtpReply>
dataClose();
RWIOUResult<RWISmtpDataReply>
dataOpen();
RWIOUResult<RWISmtpReply>
expn(const RWCString& who);
RWIOUResult<RWISmtpReply>
helo(const RWCString& localMachine); 
RWIOUResult<RWISmtpReply>
mail(const RWCString& from); 
RWIOUResult<RWISmtpReply>
noop(); 
RWIOUResult<RWISmtpReply>
quit();
RWIOUResult<RWISmtpReply>
rcpt(const RWCString& to); 
RWIOUResult<RWISmtpReply>
rset();
RWIOUResult<RWISmtpReply>
vrfy(const RWCString& who);


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.