Base for a static organization website

email.php.default 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. * This is email configuration file.
  18. *
  19. * Use it to configure email transports of CakePHP.
  20. *
  21. * Email configuration class.
  22. * You can specify multiple configurations for production, development and testing.
  23. *
  24. * transport => The name of a supported transport; valid options are as follows:
  25. * Mail - Send using PHP mail function
  26. * Smtp - Send using SMTP
  27. * Debug - Do not send the email, just return the result
  28. *
  29. * You can add custom transports (or override existing transports) by adding the
  30. * appropriate file to app/Network/Email. Transports should be named 'YourTransport.php',
  31. * where 'Your' is the name of the transport.
  32. *
  33. * from =>
  34. * The origin email. See CakeEmail::from() about the valid values
  35. */
  36. class EmailConfig {
  37. public $default = array(
  38. 'transport' => 'Mail',
  39. 'from' => 'you@localhost',
  40. //'charset' => 'utf-8',
  41. //'headerCharset' => 'utf-8',
  42. );
  43. public $smtp = array(
  44. 'transport' => 'Smtp',
  45. 'from' => array('site@localhost' => 'My Site'),
  46. 'host' => 'localhost',
  47. 'port' => 25,
  48. 'timeout' => 30,
  49. 'username' => 'user',
  50. 'password' => 'secret',
  51. 'client' => null,
  52. 'log' => false,
  53. //'charset' => 'utf-8',
  54. //'headerCharset' => 'utf-8',
  55. );
  56. public $fast = array(
  57. 'from' => 'you@localhost',
  58. 'sender' => null,
  59. 'to' => null,
  60. 'cc' => null,
  61. 'bcc' => null,
  62. 'replyTo' => null,
  63. 'readReceipt' => null,
  64. 'returnPath' => null,
  65. 'messageId' => true,
  66. 'subject' => null,
  67. 'message' => null,
  68. 'headers' => null,
  69. 'viewRender' => null,
  70. 'template' => false,
  71. 'layout' => false,
  72. 'viewVars' => null,
  73. 'attachments' => null,
  74. 'emailFormat' => null,
  75. 'transport' => 'Smtp',
  76. 'host' => 'localhost',
  77. 'port' => 25,
  78. 'timeout' => 30,
  79. 'username' => 'user',
  80. 'password' => 'secret',
  81. 'client' => null,
  82. 'log' => true,
  83. //'charset' => 'utf-8',
  84. //'headerCharset' => 'utf-8',
  85. );
  86. }