CWSendmail


Discussion

This class, which implements the CWTransport protocol, is used to provide an interface to the "sendmail" command found on most UNIX system in order to submit messages directly instead of using SMTP.

Conforms to

CWTransport

Superclass

NSObject

Declared In

CWSendmail.h



Methods

-delegate
-initWithPath:
-path
-setDelegate:
-setPath:

delegate


- (id) delegate; 
Return Value

The delegate, nil if none was previously set.

Discussion

This method is used to obtain the delegate of the CWSendmail's instance.


initWithPath:


- (id) initWithPath: (NSString *) thePath; 
Parameters
thePath

The complete path to the "sendmail" binary.

Return Value

An instance of Sendmail, nil on error.

Discussion

This is the designated initializer for the CWSendmail class.


path


- (NSString *) path; 
Return Value

The path to the "sendmail" binary.

Discussion

This method is used to get the path to the "sendmail" binary previously set by calling -setPath:.


setDelegate:


- (void) setDelegate: (id) theDelegate; 
Parameters
theDelegate

The delegate, which implements various callback methods.

Discussion

This method is used to set the CWSendmail instance's delegate. The delegate will not be retained. The CWSendmail class (and its subclasses) will invoke methods on the delegate based on actions performed.


setPath:


- (void) setPath: (NSString *) thePath; 
Parameters
thePath

The full path to the binary.

Discussion

This method is used to set the path to the "sendmail" binary.


Member Data

_data
_delegate
_message
_path
_recipients

_data


private

NSData *_data;

_delegate


private

id _delegate;

_message


private

CWMessage *_message;

_path


private

NSString *_path;

_recipients


private

NSMutableArray *_recipients;