Lead Radar: исходный код
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
9749da5ae7
201 files changed
+97685
No files matched your search
@@ -0,0 +1,16 @@
|
||||
export interface Mail {
|
||||
to: string;
|
||||
subject: string;
|
||||
text: string;
|
||||
}
|
||||
|
||||
/** Отправка писем. Почтовый сервис ещё не выбран — пока письма пишутся в лог. */
|
||||
export interface Mailer {
|
||||
send(mail: Mail): Promise<void>;
|
||||
}
|
||||
|
||||
export const consoleMailer: Mailer = {
|
||||
async send(mail) {
|
||||
console.log(`[mail → ${mail.to}] ${mail.subject}\n${mail.text}`);
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user