We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1f73c6 commit 8cc007cCopy full SHA for 8cc007c
1 file changed
packages/smtppostmaster/src/index.ts
@@ -92,7 +92,7 @@ let transport: nodemailer.Transporter<SMTPTransport.SentMessageInfo> | undefined
92
let cachedSmtpOpts: SmtpOptions | undefined;
93
94
const getTransport = (overrides?: SmtpOptions) => {
95
- const opts = getEnvOptions({ smtp: overrides });
+ const opts = getEnvOptions(overrides ? { smtp: overrides } : {});
96
const smtpOpts = opts.smtp ?? {};
97
98
if (!transport || overrides) {
0 commit comments