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