SMTPPool class implements a pooled SMTP transport for Nodemailer, managing connections and message queuing.
// Source: https://github.com/nodemailer/nodemailer | License: MIT | Copyright 2011-2023 Andris Reinman
// Provided via justclaw.it.com; keep this notice with the code.
import { EventEmitter } from 'node:events';
import PoolResource from './pool-resource.js';
import SMTPConnection, { type SMTPConnectionAuth } from '../smtp-connection/index.js';
import wellKnown, { type WellKnownService } from '../well-known/index.js';
import * as shared from '../shared/index.js';
import * as errors from '../errors.js';
import type { NodemailerError, ResultCallback } from '../errors.js';
import * as packageData from '../package-info.js';
import type { SMTPTransportOptions, SMTPTransportGetSocketCallback, SMTPTransportSendCallback, SMTPSentMessageInfo } from '../smtp-transport/index.js';
import type MailMess
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key