/**
 * Appcelerator Platform SDK
 * Copyright (c) 2014 by Appcelerator, Inc. All Rights Reserved.
 * Proprietary and Confidential - This source code is not for redistribution
 */

#import <Foundation/Foundation.h>
#import "APSCloud.h"


/**
 * The Emails API lets you send custom emails to your users.
 * For more details about the underlying REST object, see the [ACS API Docs](http://docs.appcelerator.com/cloud/latest/#!/api/Emails).
 */

@interface APSEmails : NSObject




/**
 * Sends an email to a list of email addresses from your App. 
 *
 * For more details about the underlying REST method, see the
 * [ACS API Docs](http://docs.appcelerator.com/cloud/latest/#!/api/Emails-method-email_from_template).
 * @param data Method parameters specified as an NSDictionary with the following key-value pairs:<ul> 
 * <li>template (NSString): Name of the email template you have created. (required)</li>
 * <li>recipients (NSString): Comma separated list of email addresses. (required)</li>
 * <li>from (NSString): The sender's email address.</li>
 * </ul>
 * @param handler Callback to handle the server response. See the Callback section in APSClient.
 */

+ (void)send:(NSDictionary *)data withBlock:(APSResponseHandler)handler;



@end
