email.php.default 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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-2011, 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-2011, 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. *
  34. * You can add custom transports (or override existing transports) by adding the
  35. * appropriate file to app/Network/Email. Transports should be named 'YourTransport.php',
  36. * where 'Your' is the name of the transport.
  37. *
  38. * from =>
  39. * The origin email. See CakeEmail::from() about the valid values
  40. *
  41. */
  42. class EmailConfig {
  43. public $default = array(
  44. 'transport' => 'Mail',
  45. 'from' => 'you@localhost'
  46. );
  47. public $smtp = array(
  48. 'transport' => 'Smtp',
  49. 'from' => array('site@localhost' => 'My Site'),
  50. 'host' => 'localhost',
  51. 'port' => 25,
  52. 'timeout' => 30,
  53. 'username' => 'user',
  54. 'password' => 'secret',
  55. 'client' => null
  56. );
  57. public $fast = array(
  58. 'from' => 'you@localhost',
  59. 'sender' => null,
  60. 'to' => null,
  61. 'cc' => null,
  62. 'bcc' => null,
  63. 'replyTo' => null,
  64. 'readReceipt' => null,
  65. 'returnPath' => null,
  66. 'messageId' => true,
  67. 'subject' => null,
  68. 'message' => null,
  69. 'headers' => null,
  70. 'viewRender' => null,
  71. 'template' => false,
  72. 'layout' => false,
  73. 'viewVars' => null,
  74. 'attachments' => null,
  75. 'emailFormat' => null,
  76. 'transport' => 'Smtp',
  77. 'host' => 'localhost',
  78. 'port' => 25,
  79. 'timeout' => 30,
  80. 'username' => 'user',
  81. 'password' => 'secret',
  82. 'client' => null
  83. );
  84. }