Introduce an email configuration module to manage SMTP settings, including encryption, host, username, and more. Implement functionality for retrieving invoice PDFs, storing them, and providing secure download links. Added relevant endpoint, routes, and helper methods to support these features.
29 lines
489 B
PHP
29 lines
489 B
PHP
<?php
|
|
|
|
namespace email\config;
|
|
|
|
use Exception;
|
|
use traits\module_config_variable;
|
|
|
|
class email_enabled_c
|
|
{
|
|
use module_config_variable;
|
|
|
|
/**
|
|
* @throws Exception
|
|
*/
|
|
public function __construct()
|
|
{
|
|
self::setupConfigVariable(
|
|
'Email',
|
|
'enabled',
|
|
'bool',
|
|
true,
|
|
null,
|
|
'Whether the email service is enabled or not',
|
|
'1',
|
|
false,
|
|
'false'
|
|
);
|
|
}
|
|
} |