Browse Source

fix: use from email to test SMTP

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/948/head
Pranav C 3 years ago
parent
commit
4ebce3e2a2
  1. 4
      packages/nocodb/package-lock.json
  2. 2
      packages/nocodb/src/example/dockerRunMysql.ts
  3. 4
      packages/nocodb/src/plugins/smtp/SMTP.ts

4
packages/nocodb/package-lock.json generated

@ -1,12 +1,12 @@
{ {
"name": "nocodb", "name": "nocodb",
"version": "0.84.5", "version": "0.84.6",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "nocodb", "name": "nocodb",
"version": "0.84.5", "version": "0.84.6",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"dependencies": { "dependencies": {
"@google-cloud/storage": "^5.7.2", "@google-cloud/storage": "^5.7.2",

2
packages/nocodb/src/example/dockerRunMysql.ts

@ -17,7 +17,7 @@ const date = new Date();
process.env[ process.env[
`NC_DB` `NC_DB`
] = `mysql2://localhost:3306?u=root&p=password&d=meta_${date.getFullYear()}_${date.getMonth() + ] = `mysql2://localhost:3306?u=root&p=password&d=meta_${date.getFullYear()}_${date.getMonth() +
1}_${date.getDate()}1`; 1}_${date.getDate()}`;
// process.env[`NC_DB`] = `pg://localhost:3306?u=root&p=password&d=mar_24`; // process.env[`NC_DB`] = `pg://localhost:3306?u=root&p=password&d=mar_24`;
// process.env[`NC_DB`] = `pg://localhost:5432?u=postgres&p=password&d=abcde`; // process.env[`NC_DB`] = `pg://localhost:5432?u=postgres&p=password&d=abcde`;
// process.env[`NC_TRY`] = 'true'; // process.env[`NC_TRY`] = 'true';

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

@ -35,10 +35,10 @@ export default class SMTP implements IEmailAdapter {
} }
} }
public async test(email): Promise<boolean> { public async test(): Promise<boolean> {
try { try {
await this.mailSend({ await this.mailSend({
to: email, to: this.input.from,
subject: 'Test email', subject: 'Test email',
html: 'Test email' html: 'Test email'
} as any); } as any);

Loading…
Cancel
Save