🔀 Merge pull request #103 from leonardlin/master

EmailSend without username/password
This commit is contained in:
Jan 2019-11-03 22:12:12 +01:00 committed by GitHub
commit c14bdc8814
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,13 +139,16 @@ export class EmailSend implements INodeType {
host: credentials.host as string,
port: credentials.port as number,
secure: credentials.secure as boolean,
// @ts-ignore
auth: {
user: credentials.user,
pass: credentials.password,
}
};
if(credentials.user || credentials.password) {
// @ts-ignore
connectionOptions.auth = {
user: credentials.user,
pass: credentials.password
};
}
if (options.allowUnauthorizedCerts === true) {
connectionOptions.tls = {
rejectUnauthorized: false