Inherits from MCOSMTPOperation : MCOOperation : NSObject
Declared in MCOSMTPSendOperation.h
MCOSMTPSendOperation.mm

Overview

This is an asynchronous operation that will send a message through SMTP.

Tasks

Other Methods

Other Methods

Properties

progress

This block will be called as the message is sent

@property (nonatomic, copy) MCOSMTPOperationProgressBlock progress

Declared In

MCOSMTPSendOperation.h

Instance Methods

cancel

Cancel the operation.

- (void)cancel

Declared In

MCOOperation.h

operationCompleted

This methods is called on the main thread when the asynchronous operation is finished. Needs to be overriden by subclasses.

- (void)operationCompleted

Declared In

MCOOperation.h

start:

Starts the asynchronous operation.

- (void)start:(void ( ^ ) ( NSError *error ))completionBlock

Parameters

completionBlock

Called when the operation is finished.

  • On success error will be nil

  • On failure, error will be set with MCOErrorDomain as domain and an error code available in MCOConstants.h,

Declared In

MCOSMTPOperation.h