diff --git a/admin/i18n/de/translations.json b/admin/i18n/de/translations.json index e90e31d..75bd88e 100644 --- a/admin/i18n/de/translations.json +++ b/admin/i18n/de/translations.json @@ -1,25 +1,25 @@ { - "Always use STARTTLS:": "Verwenden Sie immer STARTTLS:", - "Check the log or your email": "Log oder Emails prüfen", - "Connection settings": "Verbindungseinstellungen", - "Default settings": "Standardeinstellungen", - "Defaults": "Voreinstellung", - "E-mail adapter settings": "E-mail Adapter Einstellungen", - "Enable first the adapter to test email.": "Adapter aktivieren, um Test-Email versenden zu können.", - "Error: ": "Fehler ", - "From:": "Von", - "Host:": "Server", - "Is secure connection": "Verschlüsselte Verbindung", - "Password:": "Passwort", - "Port:": "Port", - "Requires to use STARTTLS": "Erfordert die Verwendung von STARTTLS", - "SSL connection:": "SSL Verbindung", - "Service:": "Service", - "Subject:": "Betreff", - "Test": "Test", - "This is test email!": "Das ist eine Test-Email!", - "To:": "An", - "Transport:": "Transport", - "User defined": "Benutzerdefiniert", - "User:": "Benutzer" -} + "Always use STARTTLS:": "Verwenden Sie immer STARTTLS:", + "Check the log or your email": "Log oder Emails prüfen", + "Connection settings": "Verbindungseinstellungen", + "Default settings": "Standardeinstellungen", + "Defaults": "Voreinstellung", + "E-mail adapter settings": "E-mail Adapter Einstellungen", + "Enable first the adapter to test email.": "Adapter aktivieren, um Test-Email versenden zu können.", + "Error: ": "Fehler ", + "From:": "Von", + "Host:": "Server", + "Is secure connection": "Verschlüsselte Verbindung", + "Password:": "Passwort", + "Port:": "Port", + "Requires to use STARTTLS": "Erfordert die Verwendung von STARTTLS", + "SSL connection:": "SSL Verbindung", + "Service:": "Service", + "Subject:": "Betreff", + "Test": "Test", + "This is test email!": "Das ist eine Test-Email!", + "To:": "An", + "Transport:": "Transport", + "User defined": "Benutzerdefiniert", + "User:": "Benutzer" +} \ No newline at end of file diff --git a/admin/i18n/en/translations.json b/admin/i18n/en/translations.json index 5e2f2ec..3a83e80 100644 --- a/admin/i18n/en/translations.json +++ b/admin/i18n/en/translations.json @@ -1,25 +1,25 @@ { - "Always use STARTTLS:": "Always use STARTTLS:", - "Check the log or your email": "Check the log or your email", - "Connection settings": "Connection settings", - "Default settings": "Default settings", - "Defaults": "Defaults", - "E-mail adapter settings": "E-mail adapter settings", - "Enable first the adapter to test email.": "Enable first the adapter to test email.", - "Error: ": "Error ", - "From:": "From", - "Host:": "Host", - "Is secure connection": "Is secure connection", - "Password:": "Password", - "Port:": "Port", - "Requires to use STARTTLS": "Requires to use STARTTLS", - "SSL connection:": "SSL connection", - "Service:": "Service", - "Subject:": "Subject", - "Test": "Test", - "This is test email!": "This is test email!", - "To:": "To", - "Transport:": "Transport", - "User defined": "User defined", - "User:": "User" + "Always use STARTTLS:": "Always use STARTTLS:", + "Check the log or your email": "Check the log or your email", + "Connection settings": "Connection settings", + "Default settings": "Default settings", + "Defaults": "Defaults", + "E-mail adapter settings": "E-mail adapter settings", + "Enable first the adapter to test email.": "Enable first the adapter to test email.", + "Error: ": "Error ", + "From:": "From", + "Host:": "Host", + "Is secure connection": "Is secure connection", + "Password:": "Password", + "Port:": "Port", + "Requires to use STARTTLS": "Requires to use STARTTLS", + "SSL connection:": "SSL connection", + "Service:": "Service", + "Subject:": "Subject", + "Test": "Test", + "This is test email!": "This is test email!", + "To:": "To", + "Transport:": "Transport", + "User defined": "User defined", + "User:": "User" } \ No newline at end of file diff --git a/admin/i18n/es/translations.json b/admin/i18n/es/translations.json index 01dd235..12c6a79 100644 --- a/admin/i18n/es/translations.json +++ b/admin/i18n/es/translations.json @@ -1,25 +1,25 @@ { - "Always use STARTTLS:": "Utilice siempre STARTTLS:", - "Check the log or your email": "Verifique el registro o su correo electrónico", - "Connection settings": "Configuración de conexión", - "Default settings": "Configuración por defecto", - "Defaults": "Valores predeterminados", - "E-mail adapter settings": "Configuración del adaptador de correo electrónico", - "Enable first the adapter to test email.": "Primero habilite el adaptador para probar el correo electrónico.", - "Error: ": "Error", - "From:": "De", - "Host:": "Anfitrión", - "Is secure connection": "Es una conexión segura", - "Password:": "Contraseña", - "Port:": "Puerto", - "Requires to use STARTTLS": "Requiere usar STARTTLS", - "SSL connection:": "Conexión SSL", - "Service:": "Servicio", - "Subject:": "Tema", - "Test": "Prueba", - "This is test email!": "Este es el correo electrónico de prueba!", - "To:": "A", - "Transport:": "Transporte", - "User defined": "Usuario definido", - "User:": "Usuario" + "Always use STARTTLS:": "Utilice siempre STARTTLS:", + "Check the log or your email": "Verifique el registro o su correo electrónico", + "Connection settings": "Configuración de conexión", + "Default settings": "Configuración por defecto", + "Defaults": "Valores predeterminados", + "E-mail adapter settings": "Configuración del adaptador de correo electrónico", + "Enable first the adapter to test email.": "Primero habilite el adaptador para probar el correo electrónico.", + "Error: ": "Error", + "From:": "De", + "Host:": "Anfitrión", + "Is secure connection": "Es una conexión segura", + "Password:": "Contraseña", + "Port:": "Puerto", + "Requires to use STARTTLS": "Requiere usar STARTTLS", + "SSL connection:": "Conexión SSL", + "Service:": "Servicio", + "Subject:": "Tema", + "Test": "Prueba", + "This is test email!": "Este es el correo electrónico de prueba!", + "To:": "A", + "Transport:": "Transporte", + "User defined": "Usuario definido", + "User:": "Usuario" } \ No newline at end of file diff --git a/admin/i18n/fr/translations.json b/admin/i18n/fr/translations.json index 5f03d8d..328bf24 100644 --- a/admin/i18n/fr/translations.json +++ b/admin/i18n/fr/translations.json @@ -1,25 +1,25 @@ { - "Always use STARTTLS:": "Utilisez toujours STARTTLS :", - "Check the log or your email": "Vérifiez le journal ou votre email", - "Connection settings": "Paramètres de connexion", - "Default settings": "Paramètres par défaut", - "Defaults": "Par défaut", - "E-mail adapter settings": "Paramètres de l'adaptateur de messagerie", - "Enable first the adapter to test email.": "Activez d'abord l'adaptateur pour tester le courrier électronique.", - "Error: ": "Erreur", - "From:": "De", - "Host:": "Hôte", - "Is secure connection": "Est une connexion sécurisée", - "Password:": "Mot de passe", - "Port:": "Port", - "Requires to use STARTTLS": "Nécessite d'utiliser STARTTLS", - "SSL connection:": "Connexion SSL", - "Service:": "Un service", - "Subject:": "Assujettir", - "Test": "Tester", - "This is test email!": "C'est un email de test!", - "To:": "À", - "Transport:": "Transport", - "User defined": "Défini par l'utilisateur", - "User:": "Utilisateur" + "Always use STARTTLS:": "Utilisez toujours STARTTLS :", + "Check the log or your email": "Vérifiez le journal ou votre email", + "Connection settings": "Paramètres de connexion", + "Default settings": "Paramètres par défaut", + "Defaults": "Par défaut", + "E-mail adapter settings": "Paramètres de l'adaptateur de messagerie", + "Enable first the adapter to test email.": "Activez d'abord l'adaptateur pour tester le courrier électronique.", + "Error: ": "Erreur", + "From:": "De", + "Host:": "Hôte", + "Is secure connection": "Est une connexion sécurisée", + "Password:": "Mot de passe", + "Port:": "Port", + "Requires to use STARTTLS": "Nécessite d'utiliser STARTTLS", + "SSL connection:": "Connexion SSL", + "Service:": "Un service", + "Subject:": "Assujettir", + "Test": "Tester", + "This is test email!": "C'est un email de test!", + "To:": "À", + "Transport:": "Transport", + "User defined": "Défini par l'utilisateur", + "User:": "Utilisateur" } \ No newline at end of file diff --git a/admin/i18n/it/translations.json b/admin/i18n/it/translations.json index 61fd1c7..80b70d1 100644 --- a/admin/i18n/it/translations.json +++ b/admin/i18n/it/translations.json @@ -1,25 +1,25 @@ { - "Always use STARTTLS:": "Usa sempre STARTTLS:", - "Check the log or your email": "Controlla il registro o la tua email", - "Connection settings": "Impostazioni di connessione", - "Default settings": "Impostazioni predefinite", - "Defaults": "Defaults", - "E-mail adapter settings": "Impostazioni dell'adattatore di posta elettronica", - "Enable first the adapter to test email.": "Abilitare prima l'adattatore per testare la posta elettronica.", - "Error: ": "Errore", - "From:": "A partire dal", - "Host:": "Ospite", - "Is secure connection": "È una connessione sicura", - "Password:": "Parola d'ordine", - "Port:": "Porta", - "Requires to use STARTTLS": "Richiede l'uso di STARTTLS", - "SSL connection:": "Connessione SSL", - "Service:": "Servizio", - "Subject:": "Soggetto", - "Test": "Test", - "This is test email!": "Questa è la mail di prova!", - "To:": "A", - "Transport:": "Trasporto", - "User defined": "Definito dall'utente", - "User:": "Utente" + "Always use STARTTLS:": "Usa sempre STARTTLS:", + "Check the log or your email": "Controlla il registro o la tua email", + "Connection settings": "Impostazioni di connessione", + "Default settings": "Impostazioni predefinite", + "Defaults": "Defaults", + "E-mail adapter settings": "Impostazioni dell'adattatore di posta elettronica", + "Enable first the adapter to test email.": "Abilitare prima l'adattatore per testare la posta elettronica.", + "Error: ": "Errore", + "From:": "A partire dal", + "Host:": "Ospite", + "Is secure connection": "È una connessione sicura", + "Password:": "Parola d'ordine", + "Port:": "Porta", + "Requires to use STARTTLS": "Richiede l'uso di STARTTLS", + "SSL connection:": "Connessione SSL", + "Service:": "Servizio", + "Subject:": "Soggetto", + "Test": "Test", + "This is test email!": "Questa è la mail di prova!", + "To:": "A", + "Transport:": "Trasporto", + "User defined": "Definito dall'utente", + "User:": "Utente" } \ No newline at end of file diff --git a/admin/i18n/nl/translations.json b/admin/i18n/nl/translations.json index d0a32f5..4c25e4f 100644 --- a/admin/i18n/nl/translations.json +++ b/admin/i18n/nl/translations.json @@ -1,25 +1,25 @@ { - "Always use STARTTLS:": "Gebruik altijd STARTTLS:", - "Check the log or your email": "Controleer het logboek of uw e-mail", - "Connection settings": "Verbindingsinstellingen", - "Default settings": "Standaard instellingen", - "Defaults": "defaults", - "E-mail adapter settings": "Instellingen voor e-mailadapters", - "Enable first the adapter to test email.": "Schakel eerst de adapter in om e-mail te testen.", - "Error: ": "Fout", - "From:": "Van", - "Host:": "gastheer", - "Is secure connection": "Is beveiligde verbinding", - "Password:": "Wachtwoord", - "Port:": "Haven", - "Requires to use STARTTLS": "Vereist om STARTTLS te gebruiken", - "SSL connection:": "SSL-verbinding", - "Service:": "Service", - "Subject:": "Onderwerpen", - "Test": "Test", - "This is test email!": "Dit is testmail!", - "To:": "Naar", - "Transport:": "Vervoer", - "User defined": "Gebruiker gedefinieerde", - "User:": "Gebruiker" + "Always use STARTTLS:": "Gebruik altijd STARTTLS:", + "Check the log or your email": "Controleer het logboek of uw e-mail", + "Connection settings": "Verbindingsinstellingen", + "Default settings": "Standaard instellingen", + "Defaults": "defaults", + "E-mail adapter settings": "Instellingen voor e-mailadapters", + "Enable first the adapter to test email.": "Schakel eerst de adapter in om e-mail te testen.", + "Error: ": "Fout", + "From:": "Van", + "Host:": "gastheer", + "Is secure connection": "Is beveiligde verbinding", + "Password:": "Wachtwoord", + "Port:": "Haven", + "Requires to use STARTTLS": "Vereist om STARTTLS te gebruiken", + "SSL connection:": "SSL-verbinding", + "Service:": "Service", + "Subject:": "Onderwerpen", + "Test": "Test", + "This is test email!": "Dit is testmail!", + "To:": "Naar", + "Transport:": "Vervoer", + "User defined": "Gebruiker gedefinieerde", + "User:": "Gebruiker" } \ No newline at end of file diff --git a/admin/i18n/pl/translations.json b/admin/i18n/pl/translations.json index 5b10449..60223d8 100644 --- a/admin/i18n/pl/translations.json +++ b/admin/i18n/pl/translations.json @@ -1,25 +1,25 @@ { - "Always use STARTTLS:": "Zawsze używaj STARTTLS:", - "Check the log or your email": "Sprawdź dziennik lub swój e-mail", - "Connection settings": "Ustawienia połączenia", - "Default settings": "Ustawienia domyślne", - "Defaults": "Domyślne", - "E-mail adapter settings": "Ustawienia adaptera poczty e-mail", - "Enable first the adapter to test email.": "Najpierw włącz adapter, aby przetestować pocztę e-mail.", - "Error: ": "Błąd", - "From:": "Od", - "Host:": "Gospodarz", - "Is secure connection": "Czy bezpieczne połączenie", - "Password:": "Hasło", - "Port:": "Port", - "Requires to use STARTTLS": "Wymaga użycia STARTTLS", - "SSL connection:": "Połączenie SSL", - "Service:": "Usługa", - "Subject:": "Przedmiot", - "Test": "Test", - "This is test email!": "To jest e-mail testowy!", - "To:": "Do", - "Transport:": "Transport", - "User defined": "Określony przez użytkownika", - "User:": "Użytkownik" + "Always use STARTTLS:": "Zawsze używaj STARTTLS:", + "Check the log or your email": "Sprawdź dziennik lub swój e-mail", + "Connection settings": "Ustawienia połączenia", + "Default settings": "Ustawienia domyślne", + "Defaults": "Domyślne", + "E-mail adapter settings": "Ustawienia adaptera poczty e-mail", + "Enable first the adapter to test email.": "Najpierw włącz adapter, aby przetestować pocztę e-mail.", + "Error: ": "Błąd", + "From:": "Od", + "Host:": "Gospodarz", + "Is secure connection": "Czy bezpieczne połączenie", + "Password:": "Hasło", + "Port:": "Port", + "Requires to use STARTTLS": "Wymaga użycia STARTTLS", + "SSL connection:": "Połączenie SSL", + "Service:": "Usługa", + "Subject:": "Przedmiot", + "Test": "Test", + "This is test email!": "To jest e-mail testowy!", + "To:": "Do", + "Transport:": "Transport", + "User defined": "Określony przez użytkownika", + "User:": "Użytkownik" } \ No newline at end of file diff --git a/admin/i18n/pt/translations.json b/admin/i18n/pt/translations.json index b0251d5..f34a3e4 100644 --- a/admin/i18n/pt/translations.json +++ b/admin/i18n/pt/translations.json @@ -1,25 +1,25 @@ { - "Always use STARTTLS:": "Sempre use STARTTLS:", - "Check the log or your email": "Verifique o log ou o seu email", - "Connection settings": "Configurações de conexão", - "Default settings": "Configurações padrão", - "Defaults": "Padrões", - "E-mail adapter settings": "Configurações do adaptador E-mail", - "Enable first the adapter to test email.": "Ative primeiro o adaptador para testar o e-mail.", - "Error: ": "Erro ", - "From:": "Emissor", - "Host:": "Hospedeiro", - "Is secure connection": "Conexão criptografada", - "Password:": "Senha", - "Port:": "Porta", - "Requires to use STARTTLS": "Requer o uso de STARTTLS", - "SSL connection:": "Conexão SSL", - "Service:": "Serviço", - "Subject:": "Assunto", - "Test": "Teste", - "This is test email!": "Este é um e-mail de teste!", - "To:": "Destinatário", - "Transport:": "Transporte", - "User defined": "Personalizado", - "User:": "Utilizador" + "Always use STARTTLS:": "Sempre use STARTTLS:", + "Check the log or your email": "Verifique o log ou o seu email", + "Connection settings": "Configurações de conexão", + "Default settings": "Configurações padrão", + "Defaults": "Padrões", + "E-mail adapter settings": "Configurações do adaptador E-mail", + "Enable first the adapter to test email.": "Ative primeiro o adaptador para testar o e-mail.", + "Error: ": "Erro ", + "From:": "Emissor", + "Host:": "Hospedeiro", + "Is secure connection": "Conexão criptografada", + "Password:": "Senha", + "Port:": "Porta", + "Requires to use STARTTLS": "Requer o uso de STARTTLS", + "SSL connection:": "Conexão SSL", + "Service:": "Serviço", + "Subject:": "Assunto", + "Test": "Teste", + "This is test email!": "Este é um e-mail de teste!", + "To:": "Destinatário", + "Transport:": "Transporte", + "User defined": "Personalizado", + "User:": "Utilizador" } \ No newline at end of file diff --git a/admin/i18n/ru/translations.json b/admin/i18n/ru/translations.json index e5062ab..585dfd5 100644 --- a/admin/i18n/ru/translations.json +++ b/admin/i18n/ru/translations.json @@ -1,25 +1,25 @@ { - "Always use STARTTLS:": "Всегда используйте STARTTLS:", - "Check the log or your email": "Проверьте ваш почтовый ящик или логи ioBroker", - "Connection settings": "Настройки соединения", - "Default settings": "Настройки по умолчанию", - "Defaults": "Значения по умолчанию", - "E-mail adapter settings": "Настройки драйвера E-mail", - "Enable first the adapter to test email.": "Что бы протестировать драйвер, его надо сначало активировать.", - "Error: ": "Ошибка ", - "From:": "От", - "Host:": "Хост", - "Is secure connection": "SSL соединение", - "Password:": "Пароль", - "Port:": "Порт", - "Requires to use STARTTLS": "Требуется использовать STARTTLS", - "SSL connection:": "SSL соединиение", - "Service:": "Сервис", - "Subject:": "Тема", - "Test": "Тест", - "This is test email!": "Тестовое письмо", - "To:": "Кому", - "Transport:": "Протокол", - "User defined": "Пользовательские", - "User:": "Пользователь" + "Always use STARTTLS:": "Всегда используйте STARTTLS:", + "Check the log or your email": "Проверьте ваш почтовый ящик или логи ioBroker", + "Connection settings": "Настройки соединения", + "Default settings": "Настройки по умолчанию", + "Defaults": "Значения по умолчанию", + "E-mail adapter settings": "Настройки драйвера E-mail", + "Enable first the adapter to test email.": "Что бы протестировать драйвер, его надо сначало активировать.", + "Error: ": "Ошибка ", + "From:": "От", + "Host:": "Хост", + "Is secure connection": "SSL соединение", + "Password:": "Пароль", + "Port:": "Порт", + "Requires to use STARTTLS": "Требуется использовать STARTTLS", + "SSL connection:": "SSL соединиение", + "Service:": "Сервис", + "Subject:": "Тема", + "Test": "Тест", + "This is test email!": "Тестовое письмо", + "To:": "Кому", + "Transport:": "Протокол", + "User defined": "Пользовательские", + "User:": "Пользователь" } \ No newline at end of file diff --git a/admin/i18n/uk/translations.json b/admin/i18n/uk/translations.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/admin/i18n/uk/translations.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/admin/i18n/zh-cn/translations.json b/admin/i18n/zh-cn/translations.json index 1fb7e4d..8f43ed2 100644 --- a/admin/i18n/zh-cn/translations.json +++ b/admin/i18n/zh-cn/translations.json @@ -1,25 +1,25 @@ { - "Always use STARTTLS:": "始终使用 STARTTLS:", - "Check the log or your email": "检查日志或电子邮件", - "Connection settings": "连接设置", - "Default settings": "默认设置", - "Defaults": "默认", - "E-mail adapter settings": "电子邮件适配器设置", - "Enable first the adapter to test email.": "首先启用适配器来测试电子邮件。", - "Error: ": "错误", - "From:": "从", - "Host:": "主办", - "Is secure connection": "安全连接", - "Password:": "密码", - "Port:": "港口", - "Requires to use STARTTLS": "需要使用 STARTTLS", - "SSL connection:": "SSL连接", - "Service:": "服务", - "Subject:": "学科", - "Test": "测试", - "This is test email!": "这是测试邮件!", - "To:": "至", - "Transport:": "运输", - "User defined": "用户自定义", - "User:": "用户" -} + "Always use STARTTLS:": "始终使用 STARTTLS:", + "Check the log or your email": "检查日志或电子邮件", + "Connection settings": "连接设置", + "Default settings": "默认设置", + "Defaults": "默认", + "E-mail adapter settings": "电子邮件适配器设置", + "Enable first the adapter to test email.": "首先启用适配器来测试电子邮件。", + "Error: ": "错误", + "From:": "从", + "Host:": "主办", + "Is secure connection": "安全连接", + "Password:": "密码", + "Port:": "港口", + "Requires to use STARTTLS": "需要使用 STARTTLS", + "SSL connection:": "SSL连接", + "Service:": "服务", + "Subject:": "学科", + "Test": "测试", + "This is test email!": "这是测试邮件!", + "To:": "至", + "Transport:": "运输", + "User defined": "用户自定义", + "User:": "用户" +} \ No newline at end of file diff --git a/admin/index.html b/admin/index.html deleted file mode 100644 index 58122aa..0000000 --- a/admin/index.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - - - - - - - - - - - -
- - - - -

E-mail adapter settings

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Connection settings


Defaults

 
- - -
- - diff --git a/admin/index_m.html b/admin/index_m.html deleted file mode 100644 index cef1c7f..0000000 --- a/admin/index_m.html +++ /dev/null @@ -1,327 +0,0 @@ - - - - - - - - - - - - - - - - - - -
-
-
- -
-
-
- -
-
-
-
- - -
-
-
-
- - -
-
- - - - -
-
- - -
-
- - -
-
- - -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
-
-
- - diff --git a/admin/jsonConfig.json b/admin/jsonConfig.json new file mode 100644 index 0000000..a9c171c --- /dev/null +++ b/admin/jsonConfig.json @@ -0,0 +1,189 @@ +{ + "type": "tabs", + "i18n": true, + "tabsStyle": { + "width": "calc(100% - 100px)" + }, + "items": { + "tab-main": { + "type": "panel", + "label": "Connection settings", + "items": { + "transport": { + "type": "select", + "label": "Transport", + "options": [ + { + "label": "SMTP", + "value": "SMTP" + } + ], + "xs": 12, + "sm": 12, + "md": 4, + "lg": 4, + "xl": 4 + }, + "transportOptions_service": { + "type": "select", + "label": "Service", + "options": [ + { "label": "1und1", "value": "1und1" }, + { "label": "AOL", "value": "AOL" }, + { "label": "DebugMail.io", "value": "DebugMail.io" }, + { "label": "DynectEmail", "value": "DynectEmail" }, + { "label": "FastMail", "value": "FastMail" }, + { "label": "GandiMail", "value": "GandiMail" }, + { "label": "Gmail", "value": "Gmail" }, + { "label": "Godaddy", "value": "Godaddy" }, + { "label": "GodaddyAsia", "value": "GodaddyAsia" }, + { "label": "GodaddyEurope", "value": "GodaddyEurope" }, + { "label": "hot.ee", "value": "hot.ee" }, + { "label": "Hotmail", "value": "Hotmail" }, + { "label": "iCloud", "value": "iCloud" }, + { "label": "ith", "value": "ith" }, + { "label": "ionos", "value": "ionos" }, + { "label": "mail.ee", "value": "mail.ee" }, + { "label": "Mail.ru", "value": "Mail.ru" }, + { "label": "Mailgun", "value": "Mailgun" }, + { "label": "Mailjet", "value": "Mailjet" }, + { "label": "Mandrill", "value": "Mandrill" }, + { "label": "Naver", "value": "Naver" }, + { "label": "Office365", "value": "Office365" }, + { "label": "OpenMailBox", "value": "OpenMailBox" }, + { "label": "Postmark", "value": "Postmark" }, + { "label": "QQ", "value": "QQ" }, + { "label": "QQex", "value": "QQex" }, + { "label": "SendCloud", "value": "SendCloud" }, + { "label": "SendGrid", "value": "SendGrid" }, + { "label": "SES", "value": "SES" }, + { "label": "SES-US-EAST-1", "value": "SES-US-EAST-1" }, + { "label": "SES-US-WEST-2", "value": "SES-US-WEST-2" }, + { "label": "SES-EU-WEST-1", "value": "SES-EU-WEST-1" }, + { "label": "Sparkpost", "value": "Sparkpost" }, + { "label": "web.de", "value": "web.de" }, + { "label": "Yahoo", "value": "Yahoo" }, + { "label": "Yandex", "value": "Yandex" }, + { "label": "Zoho", "value": "Zoho" }, + { "label": "User defined", "value": "" } + ], + "xs": 12, + "sm": 12, + "md": 4, + "lg": 4, + "xl": 4 + }, + "transportOptions_host": { + "type": "text", + "label": "Host", + "hidden": "data.transportOptions_service && data.transportOptions_service !== ''", + "xs": 12, + "sm": 12, + "md": 4, + "lg": 4, + "xl": 4, + "newLine": true + }, + "transportOptions_port": { + "type": "number", + "label": "Port", + "hidden": "data.transportOptions_service && data.transportOptions_service !== ''", + "xs": 12, + "sm": 12, + "md": 4, + "lg": 4, + "xl": 4 + }, + "transportOptions_secure": { + "type": "checkbox", + "label": "SSL connection", + "hidden": "data.transportOptions_service && data.transportOptions_service !== ''", + "xs": 12, + "sm": 12, + "md": 4, + "lg": 4, + "xl": 4, + "newLine": true + }, + "transportOptions_requireTLS": { + "type": "checkbox", + "label": "Always use STARTTLS", + "hidden": "data.transportOptions_service && data.transportOptions_service !== ''", + "xs": 12, + "sm": 12, + "md": 4, + "lg": 4, + "xl": 4 + }, + "transportOptions_auth_user": { + "type": "text", + "label": "User", + "xs": 12, + "sm": 12, + "md": 5, + "lg": 4, + "xl": 4, + "newLine": true + }, + "transportOptions_auth_pass": { + "type": "password", + "label": "Password", + "xs": 12, + "sm": 12, + "md": 5, + "lg": 4, + "xl": 4 + }, + "test": { + "type": "sendTo", + "label": "Test", + "command": "send", + "jsonData": "{\"subject\": \"${data.defaults_subject}\", \"to\": \"${data.defaults_to}\", \"from\": \"${data.defaults_from}\", \"text\": \"This is a test email from ioBroker!\", \"service\": \"${data.transportOptions_service ? data.transportOptions_service : ''}\", \"options\": { \"host\": \"${data.transportOptions_host}\", \"port\": \"${data.transportOptions_port}\", \"secure\": \"${data.transportOptions_secure}\", \"requireTLS\": \"${data.transportOptions_requireTLS}\", \"auth\": {\"user\": \"${data.transportOptions_auth_user}\", \"pass\": \"${encodeURIComponent(data.transportOptions_auth_pass)}\"} } }", + "variant": "outlined", + "showProcess": true, + "xs": 12, + "sm": 12, + "md": 4, + "lg": 4, + "xl": 4, + "newLine": true + } + } + }, + "tab-default": { + "type": "panel", + "label": "Default settings", + "items": { + "defaults_from": { + "type": "text", + "label": "From", + "xs": 12, + "sm": 12, + "md": 4, + "lg": 4, + "xl": 4, + "newLine": true + }, + "defaults_to": { + "type": "text", + "label": "To", + "xs": 12, + "sm": 12, + "md": 4, + "lg": 4, + "xl": 4 + }, + "defaults_subject": { + "type": "text", + "label": "Subject", + "xs": 12, + "sm": 12, + "md": 4, + "lg": 4, + "xl": 4, + "newLine": true + } + } + } + } +} diff --git a/admin/words.js b/admin/words.js deleted file mode 100644 index 2b5b6bd..0000000 --- a/admin/words.js +++ /dev/null @@ -1,28 +0,0 @@ -/*global systemDictionary:true */ -'use strict'; - -systemDictionary = { - "Always use STARTTLS:": { "en": "Always use STARTTLS:", "de": "Verwenden Sie immer STARTTLS:", "ru": "Всегда используйте STARTTLS:", "pt": "Sempre use STARTTLS:", "nl": "Gebruik altijd STARTTLS:", "fr": "Utilisez toujours STARTTLS :", "it": "Usa sempre STARTTLS:", "es": "Utilice siempre STARTTLS:", "pl": "Zawsze używaj STARTTLS:", "zh-cn": "始终使用 STARTTLS:"}, - "Check the log or your email": { "en": "Check the log or your email", "de": "Log oder Emails prüfen", "ru": "Проверьте ваш почтовый ящик или логи ioBroker", "pt": "Verifique o log ou o seu email", "nl": "Controleer het logboek of uw e-mail", "fr": "Vérifiez le journal ou votre email", "it": "Controlla il registro o la tua email", "es": "Verifique el registro o su correo electrónico", "pl": "Sprawdź dziennik lub swój e-mail", "zh-cn": "检查日志或电子邮件"}, - "Connection settings": { "en": "Connection settings", "de": "Verbindungseinstellungen", "ru": "Настройки соединения", "pt": "Configurações de conexão", "nl": "Verbindingsinstellingen", "fr": "Paramètres de connexion", "it": "Impostazioni di connessione", "es": "Configuración de conexión", "pl": "Ustawienia połączenia", "zh-cn": "连接设置"}, - "Default settings": { "en": "Default settings", "de": "Standardeinstellungen", "ru": "Настройки по умолчанию", "pt": "Configurações padrão", "nl": "Standaard instellingen", "fr": "Paramètres par défaut", "it": "Impostazioni predefinite", "es": "Configuración por defecto", "pl": "Ustawienia domyślne", "zh-cn": "默认设置"}, - "Defaults": { "en": "Defaults", "de": "Voreinstellung", "ru": "Значения по умолчанию", "pt": "Padrões", "nl": "defaults", "fr": "Par défaut", "it": "Defaults", "es": "Valores predeterminados", "pl": "Domyślne", "zh-cn": "默认"}, - "E-mail adapter settings": { "en": "E-mail adapter settings", "de": "E-mail Adapter Einstellungen", "ru": "Настройки драйвера E-mail", "pt": "Configurações do adaptador E-mail", "nl": "Instellingen voor e-mailadapters", "fr": "Paramètres de l'adaptateur de messagerie", "it": "Impostazioni dell'adattatore di posta elettronica", "es": "Configuración del adaptador de correo electrónico", "pl": "Ustawienia adaptera poczty e-mail", "zh-cn": "电子邮件适配器设置"}, - "Enable first the adapter to test email.": { "en": "Enable first the adapter to test email.", "de": "Adapter aktivieren, um Test-Email versenden zu können.", "ru": "Что бы протестировать драйвер, его надо сначало активировать.", "pt": "Ative primeiro o adaptador para testar o e-mail.", "nl": "Schakel eerst de adapter in om e-mail te testen.", "fr": "Activez d'abord l'adaptateur pour tester le courrier électronique.", "it": "Abilitare prima l'adattatore per testare la posta elettronica.", "es": "Primero habilite el adaptador para probar el correo electrónico.", "pl": "Najpierw włącz adapter, aby przetestować pocztę e-mail.", "zh-cn": "首先启用适配器来测试电子邮件。"}, - "Error: ": { "en": "Error ", "de": "Fehler ", "ru": "Ошибка ", "pt": "Erro ", "nl": "Fout", "fr": "Erreur", "it": "Errore", "es": "Error", "pl": "Błąd", "zh-cn": "错误"}, - "From:": { "en": "From", "de": "Von", "ru": "От", "pt": "Emissor", "nl": "Van", "fr": "De", "it": "A partire dal", "es": "De", "pl": "Od", "zh-cn": "从"}, - "Host:": { "en": "Host", "de": "Server", "ru": "Хост", "pt": "Hospedeiro", "nl": "gastheer", "fr": "Hôte", "it": "Ospite", "es": "Anfitrión", "pl": "Gospodarz", "zh-cn": "主办"}, - "Is secure connection": { "en": "Is secure connection", "de": "Verschlüsselte Verbindung", "ru": "SSL соединение", "pt": "Conexão criptografada", "nl": "Is beveiligde verbinding", "fr": "Est une connexion sécurisée", "it": "È una connessione sicura", "es": "Es una conexión segura", "pl": "Czy bezpieczne połączenie", "zh-cn": "安全连接"}, - "Password:": { "en": "Password", "de": "Passwort", "ru": "Пароль", "pt": "Senha", "nl": "Wachtwoord", "fr": "Mot de passe", "it": "Parola d'ordine", "es": "Contraseña", "pl": "Hasło", "zh-cn": "密码"}, - "Port:": { "en": "Port", "de": "Port", "ru": "Порт", "pt": "Porta", "nl": "Haven", "fr": "Port", "it": "Porta", "es": "Puerto", "pl": "Port", "zh-cn": "港口"}, - "Requires to use STARTTLS": { "en": "Requires to use STARTTLS", "de": "Erfordert die Verwendung von STARTTLS", "ru": "Требуется использовать STARTTLS", "pt": "Requer o uso de STARTTLS", "nl": "Vereist om STARTTLS te gebruiken", "fr": "Nécessite d'utiliser STARTTLS", "it": "Richiede l'uso di STARTTLS", "es": "Requiere usar STARTTLS", "pl": "Wymaga użycia STARTTLS", "zh-cn": "需要使用 STARTTLS"}, - "SSL connection:": { "en": "SSL connection", "de": "SSL Verbindung", "ru": "SSL соединиение", "pt": "Conexão SSL", "nl": "SSL-verbinding", "fr": "Connexion SSL", "it": "Connessione SSL", "es": "Conexión SSL", "pl": "Połączenie SSL", "zh-cn": "SSL连接"}, - "Service:": { "en": "Service", "de": "Service", "ru": "Сервис", "pt": "Serviço", "nl": "Service", "fr": "Un service", "it": "Servizio", "es": "Servicio", "pl": "Usługa", "zh-cn": "服务"}, - "Subject:": { "en": "Subject", "de": "Betreff", "ru": "Тема", "pt": "Assunto", "nl": "Onderwerpen", "fr": "Assujettir", "it": "Soggetto", "es": "Tema", "pl": "Przedmiot", "zh-cn": "学科"}, - "Test": { "en": "Test", "de": "Test", "ru": "Тест", "pt": "Teste", "nl": "Test", "fr": "Tester", "it": "Test", "es": "Prueba", "pl": "Test", "zh-cn": "测试"}, - "This is test email!": { "en": "This is test email!", "de": "Das ist eine Test-Email!", "ru": "Тестовое письмо", "pt": "Este é um e-mail de teste!", "nl": "Dit is testmail!", "fr": "C'est un email de test!", "it": "Questa è la mail di prova!", "es": "Este es el correo electrónico de prueba!", "pl": "To jest e-mail testowy!", "zh-cn": "这是测试邮件!"}, - "To:": { "en": "To", "de": "An", "ru": "Кому", "pt": "Destinatário", "nl": "Naar", "fr": "À", "it": "A", "es": "A", "pl": "Do", "zh-cn": "至"}, - "Transport:": { "en": "Transport", "de": "Transport", "ru": "Протокол", "pt": "Transporte", "nl": "Vervoer", "fr": "Transport", "it": "Trasporto", "es": "Transporte", "pl": "Transport", "zh-cn": "运输"}, - "User defined": { "en": "User defined", "de": "Benutzerdefiniert", "ru": "Пользовательские", "pt": "Personalizado", "nl": "Gebruiker gedefinieerde", "fr": "Défini par l'utilisateur", "it": "Definito dall'utente", "es": "Usuario definido", "pl": "Określony przez użytkownika", "zh-cn": "用户自定义"}, - "User:": { "en": "User", "de": "Benutzer", "ru": "Пользователь", "pt": "Utilizador", "nl": "Gebruiker", "fr": "Utilisateur", "it": "Utente", "es": "Usuario", "pl": "Użytkownik", "zh-cn": "用户"}, -}; \ No newline at end of file diff --git a/io-package.json b/io-package.json index 4f80495..91c2698 100644 --- a/io-package.json +++ b/io-package.json @@ -137,7 +137,6 @@ "enabled": true, "compact": true, "icon": "email.png", - "materialize": true, "keywords": [ "notification", "email", @@ -163,6 +162,9 @@ "sentry": { "dsn": "https://953f66fd5d204c5182b18fe0ab485169@sentry.iobroker.net/52" } + }, + "adminUI": { + "config": "json" } }, "native": { diff --git a/main.js b/main.js index 187a532..cab68e3 100644 --- a/main.js +++ b/main.js @@ -143,7 +143,10 @@ function processMessage(adapter, obj) { } if (obj.message.options) { - const options = JSON.parse(JSON.stringify(obj.message.options)); + let options = JSON.parse(JSON.stringify(obj.message.options)); + options.secure = (options.secure === 'true'); + options.requireTLS = (options.requireTLS === 'true'); + options.auth.pass = decodeURIComponent(options.auth.pass); delete obj.message.options; sendEmail(adapter, null, options, obj.message, error => obj.callback && adapter.sendTo(obj.from, 'send', {error}, obj.callback));