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