mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:27:42 +00:00
feat: add reply-to header in email notification (#6393)
* feat: add reply-to header to smtp messages * fix: grpc reply_to_address min 0 and js var name * fix: add missing translations * fix merge and linting --------- Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
@@ -15,12 +15,17 @@
|
||||
<form (ngSubmit)="savePolicy()" [formGroup]="form" autocomplete="off">
|
||||
<cnsl-form-field class="smtp-form-field" label="Sender Address" required="true">
|
||||
<cnsl-label>{{ 'SETTING.SMTP.SENDERADDRESS' | translate }}</cnsl-label>
|
||||
<input cnslInput name="senderAddress" formControlName="senderAddress" />
|
||||
<input cnslInput name="senderAddress" formControlName="senderAddress" required />
|
||||
</cnsl-form-field>
|
||||
|
||||
<cnsl-form-field class="smtp-form-field" label="Sender Name" required="true">
|
||||
<cnsl-label>{{ 'SETTING.SMTP.SENDERNAME' | translate }}</cnsl-label>
|
||||
<input cnslInput name="senderName" formControlName="senderName" />
|
||||
<input cnslInput name="senderName" formControlName="senderName" required />
|
||||
</cnsl-form-field>
|
||||
|
||||
<cnsl-form-field class="smtp-form-field" label="Reply-To Address">
|
||||
<cnsl-label>{{ 'SETTING.SMTP.REPLYTOADDRESS' | translate }}</cnsl-label>
|
||||
<input cnslInput name="senderReplyToAddress" formControlName="replyToAddress" />
|
||||
</cnsl-form-field>
|
||||
|
||||
<mat-checkbox class="smtp-checkbox" formControlName="tls">
|
||||
@@ -29,12 +34,12 @@
|
||||
|
||||
<cnsl-form-field class="smtp-form-field" label="Host And Port" required="true">
|
||||
<cnsl-label>{{ 'SETTING.SMTP.HOSTANDPORT' | translate }}</cnsl-label>
|
||||
<input cnslInput name="hostAndPort" formControlName="hostAndPort" placeholder="smtp.mailtrap.io:2525" />
|
||||
<input cnslInput name="hostAndPort" formControlName="hostAndPort" placeholder="smtp.mailtrap.io:2525" required />
|
||||
</cnsl-form-field>
|
||||
|
||||
<cnsl-form-field class="smtp-form-field" label="User" required="true">
|
||||
<cnsl-label>{{ 'SETTING.SMTP.USER' | translate }}</cnsl-label>
|
||||
<input id="smtp-user" cnslInput name="smtp-user" autocomplete="smtp-user" formControlName="user" />
|
||||
<input id="smtp-user" cnslInput name="smtp-user" autocomplete="smtp-user" formControlName="user" required />
|
||||
</cnsl-form-field>
|
||||
|
||||
<button
|
||||
|
@@ -58,6 +58,7 @@ export class NotificationSettingsComponent implements OnInit {
|
||||
this.form = this.fb.group({
|
||||
senderAddress: [{ disabled: true, value: '' }, [requiredValidator]],
|
||||
senderName: [{ disabled: true, value: '' }, [requiredValidator]],
|
||||
replyToAddress: [{ disabled: true, value: '' }],
|
||||
tls: [{ disabled: true, value: true }, [requiredValidator]],
|
||||
hostAndPort: [{ disabled: true, value: '' }, [requiredValidator]],
|
||||
user: [{ disabled: true, value: '' }, [requiredValidator]],
|
||||
@@ -143,6 +144,7 @@ export class NotificationSettingsComponent implements OnInit {
|
||||
req.setHost(this.hostAndPort?.value ?? '');
|
||||
req.setSenderAddress(this.senderAddress?.value ?? '');
|
||||
req.setSenderName(this.senderName?.value ?? '');
|
||||
req.setReplyToAddress(this.replyToAddress?.value ?? '');
|
||||
req.setTls(this.tls?.value ?? false);
|
||||
req.setUser(this.user?.value ?? '');
|
||||
|
||||
@@ -152,6 +154,7 @@ export class NotificationSettingsComponent implements OnInit {
|
||||
req.setHost(this.hostAndPort?.value ?? '');
|
||||
req.setSenderAddress(this.senderAddress?.value ?? '');
|
||||
req.setSenderName(this.senderName?.value ?? '');
|
||||
req.setReplyToAddress(this.replyToAddress?.value ?? '');
|
||||
req.setTls(this.tls?.value ?? false);
|
||||
req.setUser(this.user?.value ?? '');
|
||||
|
||||
@@ -298,6 +301,10 @@ export class NotificationSettingsComponent implements OnInit {
|
||||
return this.form.get('senderName');
|
||||
}
|
||||
|
||||
public get replyToAddress(): AbstractControl | null {
|
||||
return this.form.get('replyToAddress');
|
||||
}
|
||||
|
||||
public get tls(): AbstractControl | null {
|
||||
return this.form.get('tls');
|
||||
}
|
||||
|
@@ -1049,6 +1049,7 @@
|
||||
"TITLE": "SMTP настройки",
|
||||
"SENDERADDRESS": "Имейл адрес на изпращача",
|
||||
"SENDERNAME": "Име на изпращача",
|
||||
"REPLYTOADDRESS": "Reply-to адрес",
|
||||
"HOSTANDPORT": "Хост и порт",
|
||||
"USER": "Потребител",
|
||||
"PASSWORD": "Парола",
|
||||
|
@@ -1055,6 +1055,7 @@
|
||||
"TITLE": "SMTP Einstellungen",
|
||||
"SENDERADDRESS": "Sender Email-Adresse",
|
||||
"SENDERNAME": "Sender Name",
|
||||
"REPLYTOADDRESS": "Reply-to-Adresse",
|
||||
"HOSTANDPORT": "Host und Port",
|
||||
"USER": "Benutzer",
|
||||
"PASSWORD": "Passwort",
|
||||
|
@@ -1056,6 +1056,7 @@
|
||||
"TITLE": "SMTP Settings",
|
||||
"SENDERADDRESS": "Sender Email Address",
|
||||
"SENDERNAME": "Sender Name",
|
||||
"REPLYTOADDRESS": "Reply-to Address",
|
||||
"HOSTANDPORT": "Host And Port",
|
||||
"USER": "User",
|
||||
"PASSWORD": "Password",
|
||||
|
@@ -1056,6 +1056,7 @@
|
||||
"TITLE": "Ajustes SMTP",
|
||||
"SENDERADDRESS": "Dirección email del emisor",
|
||||
"SENDERNAME": "Nombre del emisor",
|
||||
"REPLYTOADDRESS": "Dirección Reply-To",
|
||||
"HOSTANDPORT": "Servidor y puerto",
|
||||
"USER": "Usuario",
|
||||
"PASSWORD": "Contraseña",
|
||||
|
@@ -1055,6 +1055,7 @@
|
||||
"TITLE": "Paramètres SMTP",
|
||||
"SENDERADDRESS": "Adresse e-mail de l'expéditeur",
|
||||
"SENDERNAME": "Nom de l'expéditeur",
|
||||
"REPLYTOADDRESS": "Adresse Reply-to",
|
||||
"HOSTANDPORT": "Hôte et port",
|
||||
"USER": "Utilisateur",
|
||||
"PASSWORD": "Mot de passe",
|
||||
|
@@ -1055,6 +1055,7 @@
|
||||
"TITLE": "Impostazioni SMTP",
|
||||
"SENDERADDRESS": "Indirizzo email del mittente",
|
||||
"SENDERNAME": "Nome del mittente",
|
||||
"REPLYTOADDRESS": "Indirizzo Reply-to",
|
||||
"HOSTANDPORT": "Host e porta",
|
||||
"USER": "Utente",
|
||||
"PASSWORD": "Password",
|
||||
|
@@ -1056,6 +1056,7 @@
|
||||
"TITLE": "SMTP設定",
|
||||
"SENDERADDRESS": "送信者のメールアドレス",
|
||||
"SENDERNAME": "送信者名",
|
||||
"REPLYTOADDRESS": "返信先アドレス",
|
||||
"HOSTANDPORT": "ホストとポート",
|
||||
"USER": "ユーザー",
|
||||
"PASSWORD": "パスワード",
|
||||
|
@@ -1056,6 +1056,7 @@
|
||||
"TITLE": "SMTP подесувања",
|
||||
"SENDERADDRESS": "Адреса на испраќачот",
|
||||
"SENDERNAME": "Име на испраќачот",
|
||||
"REPLYTOADDRESS": "Reply-to адреса",
|
||||
"HOSTANDPORT": "Host и Port",
|
||||
"USER": "Корисник",
|
||||
"PASSWORD": "Лозинка",
|
||||
|
@@ -1055,6 +1055,7 @@
|
||||
"TITLE": "Ustawienia SMTP",
|
||||
"SENDERADDRESS": "Adres e-mail nadawcy",
|
||||
"SENDERNAME": "Nazwa nadawcy",
|
||||
"REPLYTOADDRESS": "Adres Reply-to",
|
||||
"HOSTANDPORT": "Host i port",
|
||||
"USER": "Użytkownik",
|
||||
"PASSWORD": "Hasło",
|
||||
|
@@ -1056,6 +1056,7 @@
|
||||
"TITLE": "Configurações SMTP",
|
||||
"SENDERADDRESS": "Endereço de e-mail do remetente",
|
||||
"SENDERNAME": "Nome do remetente",
|
||||
"REPLYTOADDRESS": "Endereço Reply-To",
|
||||
"HOSTANDPORT": "Host e porta",
|
||||
"USER": "Usuário",
|
||||
"PASSWORD": "Senha",
|
||||
|
@@ -1055,6 +1055,7 @@
|
||||
"TITLE": "SMTP 设置",
|
||||
"SENDERADDRESS": "发件人地址",
|
||||
"SENDERNAME": "发件人名称",
|
||||
"REPLYTOADDRESS": "Reply-to 地址",
|
||||
"HOSTANDPORT": "主机和端口",
|
||||
"USER": "用户名",
|
||||
"PASSWORD": "密码",
|
||||
|
Reference in New Issue
Block a user