[fix] lib

This commit is contained in:
zhhe committed 2026-11-16 13:52:14 +08:00
1 parent 2bbab9c901
commit c668bef62a
35 files changed
+21879 -1

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import type { MailJob, MailboxSettings } from './types.js';
/** SMTP 发送器:单例连接池,每封信复用连接。 */
export declare class SmtpSender {
private mailbox;
private transporter?;
private key;
constructor(mailbox: MailboxSettings);
update(mailbox: MailboxSettings): void;
private sync;
send(job: MailJob, text: string): Promise<void>;
/** 关闭连接池;不等待在途邮件的重试。 */
close(): void;
}