CWTransport |
This protocol defines a generic interface for sending messages. The CWSMTP and CWSendmail classes fully implement this protocol.
Declared In
message |
- (CWMessage *) message;
The CWMessage instance.
This method is used to obtain the Message instance previously set by calling -setMessage:
messageData |
- (NSData *) messageData;
The message's raw representation.
This method is used to obtain the message (its raw representation) previously set by calling -setMessageData:
recipients |
- (NSArray *) recipients;
The array of recipients.
This method is used to obtain the recipients set when calling -setRecipients:.
sendMessage |
- (void) sendMessage;
This method sends the message previously set with -setMessage: or -setMessageData:. It posts a PantomimeTransportMessageNotSent notification (and calls -messageNotSent: on the delegate, if any) if the message could not be sent. It ports a PantomimeTransportMessageSent notification (and calls -messageSent: on the delegate, if any) if the message has been successfully sent. This method is fully asynchronous.
setMessage: |
- (void) setMessage: (CWMessage *) theMessage;
This method is used to set the message (instance of the CWMessage class) that the transport class will eventually send (by calling -sendMessage).
setMessageData: |
- (void) setMessageData: (NSData *) theData;
This method is used to set the message (as raw source) that the transport class will eventually send (by calling -sendMessage).
setRecipients: |
- (void) setRecipients: (NSArray *) theRecipients;
This method is used to specify the recipients of the message.