Inherits from NSObject
Declared in MCOMailProvidersManager.h
MCOMailProvidersManager.mm

Overview

This class is used to detect an email provider and it’s associated metadata either by MX record or by the email addresss.

An app might want to use this during setup to limit the number of settings a user has to input.

Class Methods

sharedManager

The shared manager that is used for all lookups

+ (MCOMailProvidersManager *)sharedManager

Declared In

MCOMailProvidersManager.h

Instance Methods

providerForEmail:

Given an email address will try to determine the provider
- (MCOMailProvider *)providerForEmail:(NSString *)email

Return Value

The email provider info or nil if it can’t be determined.

Declared In

MCOMailProvidersManager.h

providerForIdentifier:

Will return information about a provider. Useful if you already know the provider (like if it has been determined previously)

- (MCOMailProvider *)providerForIdentifier:(NSString *)identifier

Return Value

The email provider info or nil if none matches

Declared In

MCOMailProvidersManager.h

providerForMX:

Given the DNS MX record will try to determine the provider
- (MCOMailProvider *)providerForMX:(NSString *)hostname

Return Value

The email provider info or nil if it can’t be determined.

Declared In

MCOMailProvidersManager.h

registerProvidersWithFilename:

Registers the providers in the JSON file at the file path so they can be used with MCOMailProvidersManager.

- (void)registerProvidersWithFilename:(NSString *)filename

Declared In

MCOMailProvidersManager.h