email.php.default 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. /**
  3. * This is email configuration file.
  4. *
  5. * Use it to configure email transports of Cake.
  6. *
  7. * PHP 5
  8. *
  9. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  10. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  11. *
  12. * Licensed under The MIT License
  13. * For full copyright and license information, please see the LICENSE.txt
  14. * Redistributions of files must retain the above copyright notice.
  15. *
  16. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  17. * @link http://cakephp.org CakePHP(tm) Project
  18. * @package app.Config
  19. * @since CakePHP(tm) v 2.0.0
  20. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  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. */
  38. class EmailConfig {
  39. public $default = array(
  40. 'transport' => 'Mail',
  41. 'from' => 'you@localhost',
  42. //'charset' => 'utf-8',
  43. //'headerCharset' => 'utf-8',
  44. );
  45. public $smtp = array(
  46. 'transport' => 'Smtp',
  47. 'from' => array('site@localhost' => 'My Site'),
  48. 'host' => 'localhost',
  49. 'port' => 25,
  50. 'timeout' => 30,
  51. 'username' => 'user',
  52. 'password' => 'secret',
  53. 'client' => null,
  54. 'log' => false,
  55. //'charset' => 'utf-8',
  56. //'headerCharset' => 'utf-8',
  57. );
  58. public $fast = array(
  59. 'from' => 'you@localhost',
  60. 'sender' => null,
  61. 'to' => null,
  62. 'cc' => null,
  63. 'bcc' => null,
  64. 'replyTo' => null,
  65. 'readReceipt' => null,
  66. 'returnPath' => null,
  67. 'messageId' => true,
  68. 'subject' => null,
  69. 'message' => null,
  70. 'headers' => null,
  71. 'viewRender' => null,
  72. 'template' => false,
  73. 'layout' => false,
  74. 'viewVars' => null,
  75. 'attachments' => null,
  76. 'emailFormat' => null,
  77. 'transport' => 'Smtp',
  78. 'host' => 'localhost',
  79. 'port' => 25,
  80. 'timeout' => 30,
  81. 'username' => 'user',
  82. 'password' => 'secret',
  83. 'client' => null,
  84. 'log' => true,
  85. //'charset' => 'utf-8',
  86. //'headerCharset' => 'utf-8',
  87. );
  88. }