2022-03-14 19:13:10 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Config;
|
|
|
|
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
|
|
|
|
class Email extends BaseConfig
|
|
|
|
{
|
2024-04-07 22:17:30 +02:00
|
|
|
public string $fromEmail = '';
|
|
|
|
public string $fromName = '';
|
|
|
|
public string $recipients = '';
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The "user agent"
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public string $userAgent = 'CodeIgniter';
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The mail sending protocol: mail, sendmail, smtp
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public string $protocol = 'mail';
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The server path to Sendmail.
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public string $mailPath = '/usr/sbin/sendmail';
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
2024-04-07 22:17:30 +02:00
|
|
|
* SMTP Server Hostname
|
2022-03-14 19:13:10 +01:00
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public string $SMTPHost = '';
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* SMTP Username
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public string $SMTPUser = '';
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* SMTP Password
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public string $SMTPPass = '';
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* SMTP Port
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public int $SMTPPort = 25;
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* SMTP Timeout (in seconds)
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public int $SMTPTimeout = 5;
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enable persistent SMTP connections
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public bool $SMTPKeepAlive = false;
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
2024-04-07 22:17:30 +02:00
|
|
|
* SMTP Encryption.
|
2022-03-14 19:13:10 +01:00
|
|
|
*
|
2024-04-07 22:17:30 +02:00
|
|
|
* @var string '', 'tls' or 'ssl'. 'tls' will issue a STARTTLS command
|
|
|
|
* to the server. 'ssl' means implicit SSL. Connection on port
|
|
|
|
* 465 should set this to ''.
|
2022-03-14 19:13:10 +01:00
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public string $SMTPCrypto = 'tls';
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enable word-wrap
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public bool $wordWrap = true;
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Character count to wrap at
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public int $wrapChars = 76;
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Type of mail, either 'text' or 'html'
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public string $mailType = 'text';
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Character set (utf-8, iso-8859-1, etc.)
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public string $charset = 'UTF-8';
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether to validate the email address
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public bool $validate = false;
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Email Priority. 1 = highest. 5 = lowest. 3 = normal
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public int $priority = 3;
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Newline character. (Use “\r\n” to comply with RFC 822)
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public string $CRLF = "\r\n";
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Newline character. (Use “\r\n” to comply with RFC 822)
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public string $newline = "\r\n";
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enable BCC Batch Mode.
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public bool $BCCBatchMode = false;
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Number of emails in each BCC batch
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public int $BCCBatchSize = 200;
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enable notify message from server
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public bool $DSN = false;
|
2022-03-14 19:13:10 +01:00
|
|
|
}
|