Skip to content
Snippets Groups Projects
Email.php 2.48 KiB
Newer Older
namespace Config;

use CodeIgniter\Config\BaseConfig;

class Email extends BaseConfig
{
    public string $fromEmail = '';
    public string $fromName = 'Castopod';
    public string $recipients = '';
    public string $userAgent = 'Castopod/' . CP_VERSION;

    /**
     * The mail sending protocol: mail, sendmail, smtp
     */
    public string $protocol = 'smtp';

    /**
     * The server path to Sendmail.
     */
    public string $mailPath = '/usr/sbin/sendmail';

    /**
     * Enable persistent SMTP connections
     */
    public bool $SMTPKeepAlive = false;
     * SMTP Encryption.
     *
     * @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 ''.

    /**
     * Type of mail, either 'text' or 'html'
     */

    /**
     * Character set (utf-8, iso-8859-1, etc.)
     */

    /**
     * Whether to validate the email address
     */

    /**
     * Email Priority. 1 = highest. 5 = lowest. 3 = normal
     */

    /**
     * Newline character. (Use “\r\n” to comply with RFC 822)
     */

    /**
     * Newline character. (Use “\r\n” to comply with RFC 822)
     */

    /**
     * Number of emails in each BCC batch
     */

    /**
     * Enable notify message from server
     */

    public function __construct()
    {
        parent::__construct();

        $this->userAgent = 'Castopod/' . CP_VERSION . '; +' . base_url('', 'https');
    }