2011-04-18 01:53:30 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* This is email configuration file.
|
|
|
|
*
|
|
|
|
* Use it to configure email transports of Cake.
|
|
|
|
*
|
|
|
|
* PHP 5
|
|
|
|
*
|
|
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
2011-07-26 06:16:14 +00:00
|
|
|
* @package app.Config
|
2011-04-18 01:53:30 +00:00
|
|
|
* @since CakePHP(tm) v 2.0.0
|
2013-05-30 22:11:14 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2011-04-18 01:53:30 +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-04-18 14:27:45 +00:00
|
|
|
* Mail - Send using PHP mail function
|
2011-05-24 04:56:28 +00:00
|
|
|
* Smtp - Send using SMTP
|
2011-10-16 20:11:59 +00:00
|
|
|
* Debug - Do not send the email, just return the result
|
2011-04-18 01:53:30 +00:00
|
|
|
*
|
|
|
|
* You can add custom transports (or override existing transports) by adding the
|
2012-12-22 22:48:15 +00:00
|
|
|
* appropriate file to app/Network/Email. Transports should be named 'YourTransport.php',
|
2011-04-18 01:53:30 +00:00
|
|
|
* where 'Your' is the name of the transport.
|
|
|
|
*
|
|
|
|
* from =>
|
|
|
|
* The origin email. See CakeEmail::from() about the valid values
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
class EmailConfig {
|
|
|
|
|
|
|
|
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-18 01:53:30 +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-18 01:53:30 +00:00
|
|
|
'host' => 'localhost',
|
|
|
|
'port' => 25,
|
|
|
|
'timeout' => 30,
|
|
|
|
'username' => 'user',
|
|
|
|
'password' => 'secret',
|
2011-10-16 20:11:59 +00:00
|
|
|
'client' => null,
|
2013-02-03 19:00:32 +00:00
|
|
|
'log' => false,
|
2011-10-16 20:11:59 +00:00
|
|
|
//'charset' => 'utf-8',
|
|
|
|
//'headerCharset' => 'utf-8',
|
2011-04-18 01:53:30 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
public $fast = array(
|
|
|
|
'from' => 'you@localhost',
|
2011-04-20 00:18:02 +00:00
|
|
|
'sender' => null,
|
2011-04-18 01:53:30 +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:53:30 +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:53:30 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
}
|