mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-20 08:03:22 +02:00
133 lines
2.5 KiB
PHP
133 lines
2.5 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Config;
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
class Email extends BaseConfig
|
|
{
|
|
public string $fromEmail = '';
|
|
|
|
public string $fromName = 'Castopod';
|
|
|
|
public string $recipients = '';
|
|
|
|
/**
|
|
* The "user agent"
|
|
*/
|
|
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';
|
|
|
|
/**
|
|
* SMTP Server Hostname
|
|
*/
|
|
public string $SMTPHost = '';
|
|
|
|
/**
|
|
* SMTP Username
|
|
*/
|
|
public string $SMTPUser = '';
|
|
|
|
/**
|
|
* SMTP Password
|
|
*/
|
|
public string $SMTPPass = '';
|
|
|
|
/**
|
|
* SMTP Port
|
|
*/
|
|
public int $SMTPPort = 25;
|
|
|
|
/**
|
|
* SMTP Timeout (in seconds)
|
|
*/
|
|
public int $SMTPTimeout = 5;
|
|
|
|
/**
|
|
* 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 ''.
|
|
*/
|
|
public string $SMTPCrypto = 'tls';
|
|
|
|
/**
|
|
* Enable word-wrap
|
|
*/
|
|
public bool $wordWrap = true;
|
|
|
|
/**
|
|
* Character count to wrap at
|
|
*/
|
|
public int $wrapChars = 76;
|
|
|
|
/**
|
|
* Type of mail, either 'text' or 'html'
|
|
*/
|
|
public string $mailType = 'html';
|
|
|
|
/**
|
|
* Character set (utf-8, iso-8859-1, etc.)
|
|
*/
|
|
public string $charset = 'UTF-8';
|
|
|
|
/**
|
|
* Whether to validate the email address
|
|
*/
|
|
public bool $validate = false;
|
|
|
|
/**
|
|
* Email Priority. 1 = highest. 5 = lowest. 3 = normal
|
|
*/
|
|
public int $priority = 3;
|
|
|
|
/**
|
|
* Newline character. (Use “\r\n” to comply with RFC 822)
|
|
*/
|
|
public string $CRLF = "\r\n";
|
|
|
|
/**
|
|
* Newline character. (Use “\r\n” to comply with RFC 822)
|
|
*/
|
|
public string $newline = "\r\n";
|
|
|
|
/**
|
|
* Enable BCC Batch Mode.
|
|
*/
|
|
public bool $BCCBatchMode = false;
|
|
|
|
/**
|
|
* Number of emails in each BCC batch
|
|
*/
|
|
public int $BCCBatchSize = 200;
|
|
|
|
/**
|
|
* Enable notify message from server
|
|
*/
|
|
public bool $DSN = false;
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
$this->userAgent = 'Castopod/' . CP_VERSION . '; +' . base_url('', 'https');
|
|
}
|
|
}
|