(
diff --git a/src/Squidex/app/features/rules/pages/rules/actions/email-action.component.html b/src/Squidex/app/features/rules/pages/rules/actions/email-action.component.html
index ee11337aa..9b7c57a77 100644
--- a/src/Squidex/app/features/rules/pages/rules/actions/email-action.component.html
+++ b/src/Squidex/app/features/rules/pages/rules/actions/email-action.component.html
@@ -1,4 +1,74 @@
@@ -36,7 +106,7 @@
- The Email Subject.
+ The subject line for this e-mail message.
@@ -51,7 +121,7 @@
- The Email body
+ The message body
diff --git a/src/Squidex/app/features/rules/pages/rules/actions/email-action.component.scss b/src/Squidex/app/features/rules/pages/rules/actions/email-action.component.scss
index 77a7c8da3..51468cba5 100644
--- a/src/Squidex/app/features/rules/pages/rules/actions/email-action.component.scss
+++ b/src/Squidex/app/features/rules/pages/rules/actions/email-action.component.scss
@@ -1,5 +1,6 @@
@import '_vars';
@import '_mixins';
+
textarea {
height: 250px;
}
\ No newline at end of file
diff --git a/src/Squidex/app/features/rules/pages/rules/actions/email-action.component.ts b/src/Squidex/app/features/rules/pages/rules/actions/email-action.component.ts
index 554d1541a..ca28aebd1 100644
--- a/src/Squidex/app/features/rules/pages/rules/actions/email-action.component.ts
+++ b/src/Squidex/app/features/rules/pages/rules/actions/email-action.component.ts
@@ -24,10 +24,33 @@ export class EmailActionComponent implements OnInit {
public actionFormSubmitted = false;
public ngOnInit() {
+ this.actionForm.setControl('host',
+ new FormControl(this.action.host || 'smtp.gmail.com', [
+ Validators.required
+ ]));
+
+ this.actionForm.setControl('port',
+ new FormControl(this.action.port || 465, [
+ Validators.required,
+ Validators.pattern(/\d{2,6}/)
+ ]));
+
+ this.actionForm.setControl('enableSsl',
+ new FormControl(this.action.enableSsl || true));
+
+ this.actionForm.setControl('username',
+ new FormControl(this.action.username || '', [
+ Validators.required
+ ]));
+
+ this.actionForm.setControl('password',
+ new FormControl(this.action.password || '', [
+ Validators.required
+ ]));
+
this.actionForm.setControl('from',
new FormControl(this.action.from || '', [
- Validators.required,
- Validators.email
+ Validators.required
]));
this.actionForm.setControl('to',
diff --git a/src/Squidex/appsettings.json b/src/Squidex/appsettings.json
index 97a7db0d5..1b571af54 100644
--- a/src/Squidex/appsettings.json
+++ b/src/Squidex/appsettings.json
@@ -304,15 +304,5 @@
* The client secret for twitter.
*/
"clientSecret": "Pdu9wdN72T33KJRFdFy1w4urBKDRzIyuKpc0OItQC2E616DuZD"
- },
- "smtpServer": {
- /*
- * The hostname of the smtp server
- */
- "host": "smtp.gmail.com",
- "port": 465,
- "enableSsl": true,
- "username": "@gmail.com",
- "password": ""
}
}