[fix] lib
This commit is contained in:
35 files changed
+21879
-1
No files matched your search
Vendored
+13
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user