We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28dbf3f commit 10bd871Copy full SHA for 10bd871
lib/smtp-connection/index.js
@@ -1147,8 +1147,8 @@ class SMTPConnection extends EventEmitter {
1147
}
1148
notify = notify.map(n => n.trim().toUpperCase());
1149
let validNotify = ['NEVER', 'SUCCESS', 'FAILURE', 'DELAY'];
1150
- let invaliNotify = notify.filter(n => !validNotify.includes(n));
1151
- if (invaliNotify.length || (notify.length > 1 && notify.includes('NEVER'))) {
+ let invalidNotify = notify.filter(n => !validNotify.includes(n));
+ if (invalidNotify.length || (notify.length > 1 && notify.includes('NEVER'))) {
1152
throw new Error('notify: ' + JSON.stringify(notify.join(',')));
1153
1154
notify = notify.join(',');
0 commit comments