email.php.default 2.4 KB

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