email.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?php
  2. return array(
  3. /**
  4. * Default settings
  5. */
  6. 'defaults' => array(
  7. /**
  8. * Mail useragent string
  9. */
  10. 'useragent' => 'FuelPHP, PHP 5.3 Framework',
  11. /**
  12. * Mail driver (mail, smtp, sendmail, noop)
  13. */
  14. 'driver' => 'mail',
  15. /**
  16. * Whether to send as html, set to null for autodetection.
  17. */
  18. 'is_html' => null,
  19. /**
  20. * Email charset
  21. */
  22. 'charset' => 'utf-8',
  23. /**
  24. * Wether to encode subject and recipient names.
  25. * Requires the mbstring extension: http://www.php.net/manual/en/ref.mbstring.php
  26. */
  27. 'encode_headers' => true,
  28. /**
  29. * Ecoding (8bit, base64 or quoted-printable)
  30. */
  31. 'encoding' => '8bit',
  32. /**
  33. * Email priority
  34. */
  35. 'priority' => \Email::P_NORMAL,
  36. /**
  37. * Default sender details
  38. */
  39. 'from' => array(
  40. 'email' => false,
  41. 'name' => false,
  42. ),
  43. /**
  44. * Default return path
  45. */
  46. 'return_path' => false,
  47. /**
  48. * Whether to validate email addresses
  49. */
  50. 'validate' => true,
  51. /**
  52. * Auto attach inline files
  53. */
  54. 'auto_attach' => true,
  55. /**
  56. * Auto generate alt body from html body
  57. */
  58. 'generate_alt' => true,
  59. /**
  60. * Forces content type multipart/related to be set as multipart/mixed.
  61. */
  62. 'force_mixed' => false,
  63. /**
  64. * Wordwrap size, set to null, 0 or false to disable wordwrapping
  65. */
  66. 'wordwrap' => 76,
  67. /**
  68. * Path to sendmail
  69. */
  70. 'sendmail_path' => '/usr/sbin/sendmail',
  71. /**
  72. * SMTP settings
  73. */
  74. 'smtp' => array(
  75. 'host' => '',
  76. 'port' => 25,
  77. 'username' => '',
  78. 'password' => '',
  79. 'timeout' => 5,
  80. ),
  81. /**
  82. * Newline
  83. */
  84. 'newline' => "\n",
  85. /**
  86. * Attachment paths
  87. */
  88. 'attach_paths' => array(
  89. // absolute path
  90. '',
  91. // relative to docroot.
  92. DOCROOT,
  93. ),
  94. ),
  95. /**
  96. * Default setup group
  97. */
  98. 'default_setup' => 'default',
  99. /**
  100. * Setup groups
  101. */
  102. 'setups' => array(
  103. 'default' => array(),
  104. ),
  105. );