<?php
/**
 * This is email configuration file.
 *
 * Use it to configure email transports of Cake.
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.Config
 * @since         CakePHP(tm) v 2.0.0
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 *
 * Email configuration class.
 * You can specify multiple configurations for production, development and testing.
 *
 * transport => The name of a supported transport; valid options are as follows:
 *		Mail 		- Send using PHP mail function
 *		Smtp		- Send using SMTP
 *		Debug		- Do not send the email, just return the result
 *
 * You can add custom transports (or override existing transports) by adding the
 * appropriate file to app/Network/Email. Transports should be named 'YourTransport.php',
 * where 'Your' is the name of the transport.
 *
 * from =>
 * The origin email. See CakeEmail::from() about the valid values
 *
 */
class EmailConfig {

	/* public $default = array(
		'transport' => 'Mail',
		'from' => 'chandmiyan@gmail.com',
		'charset' => 'ISO-8859-1',
		'headerCharset' => 'ISO-8859-1',
		'X-Mailer' => "PHP/" . phpversion(),
		'log' => true
	); */
	public $default = array(
		'transport' => 'Mail',
		'from' => 'you@localhost',
		//'charset' => 'utf-8',
		//'headerCharset' => 'utf-8',
	);
//smtp.gmail.com
	/* public $smtp = array(
		'transport' => 'Smtp',
		'from' => array('info@smalution.com' => 'Y3Distribution'),
		'host' => 'smtp.gmail.com',
		'port' => 465,
		'timeout' => 30,
		'username' => 'info@smalution.com',
		'password' => 'info@1234',
		'client' => null,
		'log' => true,
		//'charset' => 'utf-8',
		//'headerCharset' => 'utf-8',
	); */
	
	/* public $smtp = array(
		'transport' => 'Smtp',
		'from' => array('support@drupway.com' => 'CRM Support - Drupway'),
		'host' => 'email-smtp.us-east-1.amazonaws.com',
		'port' => 25,
		'timeout' => 30,
		'username' => 'AKIAWNPWOT3FERDHUH4L',
		'password' => 'BAcue8zrqn1IBC5Z9/wvuN94a9j7clL8bEiUOI0k5lKJ',
		'client' => null,
		'log' => false,
		'tls' =>true,
		//'charset' => 'utf-8',
		//'headerCharset' => 'utf-8',
	);  */
	
	public $smtp = array(
		'transport' => 'Smtp',
		'from' => array('drupwaycrm@gmail.com' => 'Drupway CRM'),
		'host' => 'smtp.gmail.com',
		'port' => 587,
		'timeout' => 30,
		'username' => 'drupwaycrm@gmail.com',
		'password' => 'evux rvhq jzah cmcd',
		'client' => null,
		'log' => true,
		'tls'   =>  true,
		//'charset' => 'utf-8',
		//'headerCharset' => 'utf-8',
	);


	public $fast = array(
		'from' => 'you@localhost',
		'sender' => null,
		'to' => null,
		'cc' => null,
		'bcc' => null,
		'replyTo' => null,
		'readReceipt' => null,
		'returnPath' => null,
		'messageId' => true,
		'subject' => null,
		'message' => null,
		'headers' => null,
		'viewRender' => null,
		'template' => false,
		'layout' => false,
		'viewVars' => null,
		'attachments' => null,
		'emailFormat' => null,
		'transport' => 'Smtp',
		'host' => 'localhost',
		'port' => 25,
		'timeout' => 30,
		'username' => 'user',
		'password' => 'secret',
		'client' => null,
		'log' => true,
		//'charset' => 'utf-8',
		//'headerCharset' => 'utf-8',
	);

}
