Base for a static organization website

email.php.default 1.9KB

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