Merge branch 'main' of https://git.hexahost.dev/smueller/HexaHost-Frontend
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
|
||||
|
||||
define('SMTP_HOST', 'smtp.ihre-domain.de');
|
||||
define('SMTP_PORT', 587);
|
||||
define('SMTP_USERNAME', 'kontakt@ihre-domain.de');
|
||||
define('SMTP_PASSWORD', 'ihr-smtp-passwort');
|
||||
define('SMTP_FROM_EMAIL', 'kontakt@hexahost.de');
|
||||
define('SMTP_TO_EMAIL', 'info@hexahost.de');
|
||||
|
||||
@@ -46,6 +50,9 @@ define('BLACKLISTED_EMAILS', [
|
||||
]);
|
||||
|
||||
|
||||
if (!defined('SMTP_HOST') || !defined('SMTP_USERNAME') || !defined('SMTP_PASSWORD')) {
|
||||
die('SMTP-Konfiguration ist unvollständig. Bitte überprüfen Sie die mail-config.php');
|
||||
}
|
||||
if (!filter_var(SMTP_FROM_EMAIL, FILTER_VALIDATE_EMAIL)) {
|
||||
die('Ungültige SMTP_FROM_EMAIL Adresse');
|
||||
}
|
||||
@@ -97,6 +104,11 @@ function isValidEmail($email) {
|
||||
function getHexaHostConfig($key = null) {
|
||||
$config = [
|
||||
|
||||
'smtp_host' => SMTP_HOST,
|
||||
'smtp_port' => SMTP_PORT,
|
||||
'smtp_username' => SMTP_USERNAME,
|
||||
'smtp_password' => SMTP_PASSWORD,
|
||||
'smtp_encryption' => 'tls',
|
||||
'from_email' => SMTP_FROM_EMAIL,
|
||||
'from_name' => 'HexaHost.de Kontaktformular',
|
||||
'to_email' => SMTP_TO_EMAIL,
|
||||
|
||||
Reference in New Issue
Block a user