2011-04-10 01:56:09 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* This is email configuration file.
|
|
|
|
*
|
|
|
|
* Use it to configure email transports of Cake.
|
|
|
|
*
|
|
|
|
* PHP 5
|
|
|
|
*
|
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
2012-03-13 02:46:07 +00:00
|
|
|
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2011-04-10 01:56:09 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2012-03-13 02:46:07 +00:00
|
|
|
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2011-04-10 01:56:09 +00:00
|
|
|
* @link http://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
|
|
|
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
|
|
|
*/
|
|
|
|
/**
|
2011-04-17 22:23:09 +00:00
|
|
|
* In this file you set up your send email details.
|
2011-04-10 01:56:09 +00:00
|
|
|
*
|
|
|
|
* @package cake.config
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* 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:
|
2011-05-24 04:56:28 +00:00
|
|
|
* Mail - Send using PHP mail function
|
|
|
|
* Smtp - Send using SMTP
|
2011-10-16 20:11:59 +00:00
|
|
|
* 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
|
|
|
|
* appropriate file to app/Network/Email. Transports should be named 'YourTransport.php',
|
|
|
|
* 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
|
|
|
}
|