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