pictcode / lib / Cake / Console / Templates / skel / Config / email.php.default @ d510f2df
履歴 | 表示 | アノテート | ダウンロード (1.945 KB)
| 1 |
<?php |
|---|---|
| 2 |
/** |
| 3 |
* This is email configuration file. |
| 4 |
* |
| 5 |
* Use it to configure email transports of Cake. |
| 6 |
* |
| 7 |
* @link http://cakephp.org CakePHP(tm) Project |
| 8 |
* @package app.Config |
| 9 |
* @since CakePHP(tm) v 2.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
/** |
| 13 |
* Email configuration class. |
| 14 |
* You can specify multiple configurations for production, development and testing. |
| 15 |
* |
| 16 |
* transport => The name of a supported transport; valid options are as follows: |
| 17 |
* Mail - Send using PHP mail function |
| 18 |
* Smtp - Send using SMTP |
| 19 |
* Debug - Do not send the email, just return the result |
| 20 |
* |
| 21 |
* You can add custom transports (or override existing transports) by adding the |
| 22 |
* appropriate file to app/Network/Email. Transports should be named 'YourTransport.php', |
| 23 |
* where 'Your' is the name of the transport. |
| 24 |
* |
| 25 |
* from => |
| 26 |
* The origin email. See CakeEmail::from() about the valid values |
| 27 |
*/ |
| 28 |
class EmailConfig {
|
| 29 |
|
| 30 |
public $default = array( |
| 31 |
'transport' => 'Mail', |
| 32 |
'from' => 'you@localhost', |
| 33 |
//'charset' => 'utf-8', |
| 34 |
//'headerCharset' => 'utf-8', |
| 35 |
); |
| 36 |
|
| 37 |
public $smtp = array( |
| 38 |
'transport' => 'Smtp', |
| 39 |
'from' => array('site@localhost' => 'My Site'),
|
| 40 |
'host' => 'localhost', |
| 41 |
'port' => 25, |
| 42 |
'timeout' => 30, |
| 43 |
'username' => 'user', |
| 44 |
'password' => 'secret', |
| 45 |
'client' => null, |
| 46 |
'log' => false, |
| 47 |
//'charset' => 'utf-8', |
| 48 |
//'headerCharset' => 'utf-8', |
| 49 |
); |
| 50 |
|
| 51 |
public $fast = array( |
| 52 |
'from' => 'you@localhost', |
| 53 |
'sender' => null, |
| 54 |
'to' => null, |
| 55 |
'cc' => null, |
| 56 |
'bcc' => null, |
| 57 |
'replyTo' => null, |
| 58 |
'readReceipt' => null, |
| 59 |
'returnPath' => null, |
| 60 |
'messageId' => true, |
| 61 |
'subject' => null, |
| 62 |
'message' => null, |
| 63 |
'headers' => null, |
| 64 |
'viewRender' => null, |
| 65 |
'template' => false, |
| 66 |
'layout' => false, |
| 67 |
'viewVars' => null, |
| 68 |
'attachments' => null, |
| 69 |
'emailFormat' => null, |
| 70 |
'transport' => 'Smtp', |
| 71 |
'host' => 'localhost', |
| 72 |
'port' => 25, |
| 73 |
'timeout' => 30, |
| 74 |
'username' => 'user', |
| 75 |
'password' => 'secret', |
| 76 |
'client' => null, |
| 77 |
'log' => true, |
| 78 |
//'charset' => 'utf-8', |
| 79 |
//'headerCharset' => 'utf-8', |
| 80 |
); |
| 81 |
|
| 82 |
} |