Email.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\BaseConfig;
  4. class Email extends BaseConfig
  5. {
  6. public string $fromEmail = '';
  7. public string $fromName = '';
  8. public string $recipients = '';
  9. /**
  10. * The "user agent"
  11. */
  12. public string $userAgent = 'CodeIgniter';
  13. /**
  14. * The mail sending protocol: mail, sendmail, smtp
  15. */
  16. public string $protocol = 'mail';
  17. /**
  18. * The server path to Sendmail.
  19. */
  20. public string $mailPath = '/usr/sbin/sendmail';
  21. /**
  22. * SMTP Server Hostname
  23. */
  24. public string $SMTPHost = '';
  25. /**
  26. * SMTP Username
  27. */
  28. public string $SMTPUser = '';
  29. /**
  30. * SMTP Password
  31. */
  32. public string $SMTPPass = '';
  33. /**
  34. * SMTP Port
  35. */
  36. public int $SMTPPort = 25;
  37. /**
  38. * SMTP Timeout (in seconds)
  39. */
  40. public int $SMTPTimeout = 5;
  41. /**
  42. * Enable persistent SMTP connections
  43. */
  44. public bool $SMTPKeepAlive = false;
  45. /**
  46. * SMTP Encryption.
  47. *
  48. * @var string '', 'tls' or 'ssl'. 'tls' will issue a STARTTLS command
  49. * to the server. 'ssl' means implicit SSL. Connection on port
  50. * 465 should set this to ''.
  51. */
  52. public string $SMTPCrypto = 'tls';
  53. /**
  54. * Enable word-wrap
  55. */
  56. public bool $wordWrap = true;
  57. /**
  58. * Character count to wrap at
  59. */
  60. public int $wrapChars = 76;
  61. /**
  62. * Type of mail, either 'text' or 'html'
  63. */
  64. public string $mailType = 'text';
  65. /**
  66. * Character set (utf-8, iso-8859-1, etc.)
  67. */
  68. public string $charset = 'UTF-8';
  69. /**
  70. * Whether to validate the email address
  71. */
  72. public bool $validate = false;
  73. /**
  74. * Email Priority. 1 = highest. 5 = lowest. 3 = normal
  75. */
  76. public int $priority = 3;
  77. /**
  78. * Newline character. (Use “\r\n” to comply with RFC 822)
  79. */
  80. public string $CRLF = "\r\n";
  81. /**
  82. * Newline character. (Use “\r\n” to comply with RFC 822)
  83. */
  84. public string $newline = "\r\n";
  85. /**
  86. * Enable BCC Batch Mode.
  87. */
  88. public bool $BCCBatchMode = false;
  89. /**
  90. * Number of emails in each BCC batch
  91. */
  92. public int $BCCBatchSize = 200;
  93. /**
  94. * Enable notify message from server
  95. */
  96. public bool $DSN = false;
  97. }