Browse Source

Merge pull request #577 from eevleevs/master

Add ignoreTLS to email plugin
pull/598/head
Pranav C 3 years ago committed by GitHub
parent
commit
d01fa1bfc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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, "host": this.input?.host,
"port": parseInt(this.input?.port, 10), "port": parseInt(this.input?.port, 10),
"secure": this.input?.secure === 'true', "secure": this.input?.secure === 'true',
"ignoreTLS": this.input?.ignoreTLS === 'true',
"auth": { "auth": {
"user": this.input?.username, "user": this.input?.username,
"pass": this.input?.password "pass": this.input?.password

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

@ -26,6 +26,12 @@ const input: XcForm = {
placeholder: 'Secure', placeholder: 'Secure',
type: XcType.SingleLineText, type: XcType.SingleLineText,
required: true required: true
}, {
key: 'ignoreTLS',
label: 'IgnoreTLS',
placeholder: 'IgnoreTLS',
type: XcType.SingleLineText,
required: true
}, { }, {
key: 'username', key: 'username',
label: '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, "host": this.input?.host,
"port": parseInt(this.input?.port, 10), "port": parseInt(this.input?.port, 10),
"secure": this.input?.secure === 'true', "secure": this.input?.secure === 'true',
"ignoreTLS": this.input?.ignoreTLS === 'true',
"auth": { "auth": {
"user": this.input?.username, "user": this.input?.username,
"pass": this.input?.password "pass": this.input?.password

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

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

Loading…
Cancel
Save