2011-04-10 01:56:09 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2017-06-10 21:33:55 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
|
2017-06-10 22:10:52 +00:00
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
2011-04-10 01:56:09 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
2013-02-08 12:22:51 +00:00
|
|
|
* For full copyright and license information, please see the LICENSE.txt
|
2011-04-10 01:56:09 +00:00
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2017-06-10 22:10:52 +00:00
|
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
2017-06-10 21:33:55 +00:00
|
|
|
* @link https://cakephp.org CakePHP(tm) Project
|
2011-10-14 19:06:36 +00:00
|
|
|
* @package app.Config
|
2011-04-10 01:56:09 +00:00
|
|
|
* @since CakePHP(tm) v 2.0.0
|
2013-05-30 22:11:14 +00:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
2013-10-23 02:18:59 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This is email configuration file.
|
|
|
|
*
|
|
|
|
* Use it to configure email transports of CakePHP.
|
2011-04-10 01:56:09 +00:00
|
|
|
*
|
|
|
|
* 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:
|
2013-10-23 02:18:59 +00:00
|
|
|
* Mail - Send using PHP mail function
|
|
|
|
* Smtp - Send using SMTP
|
|
|
|
* Debug - Do not send the email, just return the result
|
2011-04-10 01:56:09 +00:00
|
|
|
*
|
2011-04-17 22:23:09 +00:00
|
|
|
* You can add custom transports (or override existing transports) by adding the
|
2013-02-03 19:00:32 +00:00
|
|
|
* appropriate file to app/Network/Email. Transports should be named 'YourTransport.php',
|
2011-04-17 22:23:09 +00:00
|
|
|
* where 'Your' is the name of the transport.
|
2011-04-10 01:56:09 +00:00
|
|
|
*
|
|
|
|
* from =>
|
2011-04-17 22:23:09 +00:00
|
|
|
* The origin email. See CakeEmail::from() about the valid values
|
2011-04-10 01:56:09 +00:00
|
|
|
*/
|
2011-04-17 22:11:46 +00:00
|
|
|
class EmailConfig {
|
2011-04-10 01:56:09 +00:00
|
|
|
|
|
|
|
public $default = array(
|
2011-05-24 04:56:28 +00:00
|
|
|
'transport' => 'Mail',
|
2011-10-16 20:11:59 +00:00
|
|
|
'from' => 'you@localhost',
|
|
|
|
//'charset' => 'utf-8',
|
|
|
|
//'headerCharset' => 'utf-8',
|
2011-04-10 01:56:09 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
public $smtp = array(
|
2011-05-24 04:56:28 +00:00
|
|
|
'transport' => 'Smtp',
|
2011-08-24 18:55:53 +00:00
|
|
|
'from' => array('site@localhost' => 'My Site'),
|
2011-04-10 01:56:09 +00:00
|
|
|
'host' => 'localhost',
|
|
|
|
'port' => 25,
|
2011-04-10 03:08:05 +00:00
|
|
|
'timeout' => 30,
|
2011-04-10 01:56:09 +00:00
|
|
|
'username' => 'user',
|
2011-04-10 03:08:05 +00:00
|
|
|
'password' => 'secret',
|
2011-10-16 20:11:59 +00:00
|
|
|
'client' => null,
|
2012-04-09 00:53:22 +00:00
|
|
|
'log' => false,
|
2011-10-16 20:11:59 +00:00
|
|
|
//'charset' => 'utf-8',
|
|
|
|
//'headerCharset' => 'utf-8',
|
2011-04-10 01:56:09 +00:00
|
|
|
);
|
|
|
|
|
2011-04-18 01:23:48 +00:00
|
|
|
public $fast = array(
|
|
|
|
'from' => 'you@localhost',
|
2011-04-20 00:18:02 +00:00
|
|
|
'sender' => null,
|
2011-04-18 01:23:48 +00:00
|
|
|
'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,
|
2011-05-24 04:56:28 +00:00
|
|
|
'transport' => 'Smtp',
|
2011-04-18 01:23:48 +00:00
|
|
|
'host' => 'localhost',
|
|
|
|
'port' => 25,
|
|
|
|
'timeout' => 30,
|
|
|
|
'username' => 'user',
|
|
|
|
'password' => 'secret',
|
2011-10-16 20:11:59 +00:00
|
|
|
'client' => null,
|
|
|
|
'log' => true,
|
|
|
|
//'charset' => 'utf-8',
|
|
|
|
//'headerCharset' => 'utf-8',
|
2011-04-18 01:23:48 +00:00
|
|
|
);
|
|
|
|
|
2011-04-10 01:56:09 +00:00
|
|
|
}
|