CWSMTP


Pantomime SMTP client code.

Discussion

This class, which extends the CWService class and implements the CWTransport protocol, is Pantomime's SMTP client code.

Conforms to

CWTransport

Superclass

CWService

Declared In

CWSMTP.h



Methods

-lastResponse
-lastResponseCode
-reset
-sendCommand: arguments: ...
-sendCommand:arguments:

lastResponse


- (NSData *) lastResponse; 
Return Value

The last response in its complete form, nil if no response was read.

Discussion

This method is used to obtain the last response received from the SMTP server. If the server sent a multi-line response, only the last line will be returned.


lastResponseCode


- (int) lastResponseCode; 
Return Value

The last response code in its complete form, 0 if no response was read.

Discussion

This method is used to obtain the last response code received from the SMTP server. If the server sent a multi-line response, only the code of the last line will be returned.


reset


- (void) reset; 
Discussion

This method is used to send the RSET SMTP command. See 4.1.1.5 RESET (RSET) of RFC 2821 for a full description of this command. It will NOT reset to nil the previously used recipients, message or message data. If you wish to change either of them, call the corresponding accessor method between your -sendMessage calls.


sendCommand: arguments: ...


- (void) sendCommand: (SMTPCommand) theCommand arguments: (NSString *) theFormat, ...; 
Parameters
theCommand

The SMTP command to send.

theFormat

The format defining the variable arguments list.

Discussion

This method is used to send commands to the SMTP server. Normally, you should not call this method directly.

See Also

sendCommand:arguments:


sendCommand:arguments:


- (void) sendCommand: (SMTPCommand) theCommand arguments: (NSString *) theFormat, ...; 
Parameters
theCommand

The SMTP command to send.

theFormat

The format defining the variable arguments list.

Discussion

This method is used to send commands to the SMTP server. Normally, you should not call this method directly.

See Also

sendCommand: arguments: ...


Member Data

_data
_max_size
_message
_recipients
_redirected
_sent_recipients

_data


private

NSData *_data;

_max_size


private

unsigned int _max_size;

_message


private

CWMessage *_message;

_recipients


private

NSMutableArray *_recipients;

_redirected


private

BOOL _redirected;

_sent_recipients


private

NSMutableArray *_sent_recipients;