Browse Source

Add ignoreTLS to email plugin

Signed-off-by: Giulio Malventi <giulio.malventi@gmail.com>
pull/577/head
Giulio Malventi 3 years ago
parent
commit
4ae7d85188
  1. 1
      packages/nocodb/src/lib/noco/plugins/adapters/email/SMTP.ts
  2. 6
      packages/nocodb/src/lib/noco/plugins/smtp.ts
  3. 1
      packages/nocodb/src/plugins/smtp/SMTP.ts
  4. 8
      packages/nocodb/src/plugins/smtp/index.ts

1
packages/nocodb/src/lib/noco/plugins/adapters/email/SMTP.ts

@ -21,6 +21,7 @@ class SMTP implements IEmailAdapter {
"host": this.input?.host,
"port": parseInt(this.input?.port, 10),
"secure": this.input?.secure === 'true',
"ignoreTLS": this.input?.ignoreTLS === 'true',
"auth": {
"user": this.input?.username,
"pass": this.input?.password

6
packages/nocodb/src/lib/noco/plugins/smtp.ts

@ -26,6 +26,12 @@ const input: XcForm = {
placeholder: 'Secure',
type: XcType.SingleLineText,
required: true
}, {
key: 'ignoreTLS',
label: 'IgnoreTLS',
placeholder: 'IgnoreTLS',
type: XcType.SingleLineText,
required: true
}, {
key: 'username',
label: 'Username',

1
packages/nocodb/src/plugins/smtp/SMTP.ts

@ -20,6 +20,7 @@ export default class SMTP implements IEmailAdapter {
"host": this.input?.host,
"port": parseInt(this.input?.port, 10),
"secure": this.input?.secure === 'true',
"ignoreTLS": this.input?.ignoreTLS === 'true',
"auth": {
"user": this.input?.username,
"pass": this.input?.password

8
packages/nocodb/src/plugins/smtp/index.ts

@ -41,7 +41,13 @@ const config: XcPluginConfig ={
type: XcType.SingleLineText,
required: true
}, {
key: 'username',
key: 'ignoreTLS',
label: 'IgnoreTLS',
placeholder: 'IgnoreTLS',
type: XcType.SingleLineText,
required: false
}, {
key: 'username',
label: 'Username',
placeholder: 'Username',
type: XcType.SingleLineText,

Loading…
Cancel
Save