Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Internet Protocols Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWSmtpClient

Module:  Internet Protocols Module   Package:  SMTP


Does not inherit

Local Index

Members

Header File

#include <rw/smtp/RWSmtpClient.h>

Description

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

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

RWSmtpClient objects are lightweight. They are implemented using the interface-implementation idiom. The RWSmtpClient is a handle to an implementation that performs the protocol interaction.

Example

Enumeration

enum authenticationType {
     CRAM_MD5
};

Public Constructor

RWSmtpClient();

Public Member Functions

RWTIOUResult<RWSmtpReply>
auth(RWCString const& user, RWCString const& passwd, authenticationType);
RWTIOUResult<RWSmtpReply>
connect(const RWSockAddrBase& address); 
RWTIOUResult<RWSmtpReply>
dataClose();
RWTIOUResult<RWSmtpDataReply>
dataOpen();
RWTIOUResult<RWSmtpReply>
ehlo(const RWCString& localMachine);
RWTIOUResult<RWSmtpReply>
expn(const RWCString& who);
unsigned long
getTimeout(void) const;
RWTIOUResult<RWSmtpReply>
helo(const RWCString& localMachine); 
RWTIOUResult<RWSmtpReply>
mail(const RWCString& from); 
RWTIOUResult<RWSmtpReply>
noop(); 
RWTIOUResult<RWSmtpReply>
quit();
RWTIOUResult<RWSmtpReply>
rcpt(const RWCString& to); 
RWTIOUResult<RWSmtpReply>
rset();
void
setTimeout(unsigned long timeout);
RWTIOUResult<RWSmtpReply>
vrfy(const RWCString& who);


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.