選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

173 行
2.6KB

  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\BaseConfig;
  4. class Email extends BaseConfig
  5. {
  6. /**
  7. * @var string
  8. */
  9. public $fromEmail = 'admin@mail.com';
  10. /**
  11. * @var string
  12. */
  13. public $fromName = 'Admin';
  14. /**
  15. * @var string
  16. */
  17. public $recipients;
  18. /**
  19. * The "user agent"
  20. *
  21. * @var string
  22. */
  23. public $userAgent = 'CodeIgniter';
  24. /**
  25. * The mail sending protocol: mail, sendmail, smtp
  26. *
  27. * @var string
  28. */
  29. public $protocol = 'smtp';
  30. /**
  31. * The server path to Sendmail.
  32. *
  33. * @var string
  34. */
  35. public $mailPath = '/usr/sbin/sendmail';
  36. /**
  37. * SMTP Server Address
  38. *
  39. * @var string
  40. */
  41. public $SMTPHost = 'smtp.mailtrap.io';
  42. /**
  43. * SMTP Username
  44. *
  45. * @var string
  46. */
  47. public $SMTPUser = 'c504e92b75d96e';
  48. /**
  49. * SMTP Password
  50. *
  51. * @var string
  52. */
  53. public $SMTPPass = '4f1c9858aef3fb';
  54. /**
  55. * SMTP Port
  56. *
  57. * @var int
  58. */
  59. public $SMTPPort = 587;
  60. /**
  61. * SMTP Timeout (in seconds)
  62. *
  63. * @var int
  64. */
  65. public $SMTPTimeout = 20;
  66. /**
  67. * Enable persistent SMTP connections
  68. *
  69. * @var bool
  70. */
  71. public $SMTPKeepAlive = false;
  72. /**
  73. * SMTP Encryption. Either tls or ssl
  74. *
  75. * @var string
  76. */
  77. public $SMTPCrypto = 'tls';
  78. /**
  79. * Enable word-wrap
  80. *
  81. * @var bool
  82. */
  83. public $wordWrap = true;
  84. /**
  85. * Character count to wrap at
  86. *
  87. * @var int
  88. */
  89. public $wrapChars = 76;
  90. /**
  91. * Type of mail, either 'text' or 'html'
  92. *
  93. * @var string
  94. */
  95. public $mailType = 'html';
  96. /**
  97. * Character set (utf-8, iso-8859-1, etc.)
  98. *
  99. * @var string
  100. */
  101. public $charset = 'UTF-8';
  102. /**
  103. * Whether to validate the email address
  104. *
  105. * @var bool
  106. */
  107. public $validate = false;
  108. /**
  109. * Email Priority. 1 = highest. 5 = lowest. 3 = normal
  110. *
  111. * @var int
  112. */
  113. public $priority = 3;
  114. /**
  115. * Newline character. (Use “\r\n” to comply with RFC 822)
  116. *
  117. * @var string
  118. */
  119. public $CRLF = "\r\n";
  120. /**
  121. * Newline character. (Use “\r\n” to comply with RFC 822)
  122. *
  123. * @var string
  124. */
  125. public $newline = "\r\n";
  126. /**
  127. * Enable BCC Batch Mode.
  128. *
  129. * @var bool
  130. */
  131. public $BCCBatchMode = false;
  132. /**
  133. * Number of emails in each BCC batch
  134. *
  135. * @var int
  136. */
  137. public $BCCBatchSize = 200;
  138. /**
  139. * Enable notify message from server
  140. *
  141. * @var bool
  142. */
  143. public $DSN = false;
  144. }