email.php.default 2.5 KB

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