MLEmail Class Reference

Inherits from NSObject
Declared in MLEmail.h

Overview

MLEmail is a representation of an email.

  templateName

The e-mail template name

@property (nonatomic, strong) NSString *templateName

Declared In

MLEmail.h

  from

The e-mail sender

@property (nonatomic, strong) NSString *from

Declared In

MLEmail.h

  to

The e-mail receivers

@property (nonatomic, strong) NSArray ML_GENERIC ( NSString **to

Declared In

MLEmail.h

  subjectArgs

The arguments in email subject, defined in the template.

@property (nonatomic, strong, nullable) NSDictionary ML_GENERIC ( NSString *NSString **subjectArgs

Declared In

MLEmail.h

  textArgs

The text arguments

@property (nonatomic, strong, nullable) NSDictionary ML_GENERIC ( NSString *NSString **textArgs

Declared In

MLEmail.h

  htmlArgs

The html arguments

@property (nonatomic, strong, nullable) NSDictionary ML_GENERIC ( NSString *NSString **htmlArgs

Declared In

MLEmail.h

– initWithTemplateName:

Create an email with the templateName.

- (instancetype)initWithTemplateName:(NSString *)templateName

Parameters

templateName

The template name

Declared In

MLEmail.h

– sendInBackgroundWithBlock:

Send this email.

- (void)sendInBackgroundWithBlock:(nullable MLBooleanResultBlock)block

Parameters

block

The block to excute after email sending finish.

Declared In

MLEmail.h