Skip to content

Mail connector undefined #1971

@DivCorleone

Description

@DivCorleone

Steps to reproduce

lb4 datasource 
? Datasource name: mail
? Select the connector for mail: Email (supported by StrongLoop)
? An array of transport configuration objects: [ { "type": "SMTP", "host": "smtp.gmail.com", "secure": true, "port": 465, "tls": { "rejectUnauthorized": false   },  "auth": { "user": "name@gmail.com",  "pass": "pass"  }  }  ]

index.ts:

export async function main(options: ApplicationConfig = {}) {
  const app = new MaillingApplication(options);
  await app.boot();
  await app.start();

  const url = app.restServer.url;
  console.log(`Server is running at ${url}`);
  console.log(`Try ${url}/ping`);

  let mailer = new MailDataSource;
  console.log('mailer.connector: ', mailer.connector); // undefined

  return app;
}

See Reporting Issues for more tips on writing good issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions