diff --git a/smtp/connection.ts b/smtp/connection.ts index c4882d7..08a6857 100644 --- a/smtp/connection.ts +++ b/smtp/connection.ts @@ -762,8 +762,8 @@ export class SMTPConnection extends EventEmitter { const preferred = this.authentication; let auth = ''; - if (typeof this.features?.auth === 'string') { - auth = this.features.auth; + if (typeof this.features?.['auth'] === 'string') { + auth = this.features['auth']; } for (let i = 0; i < preferred.length; i++) {