Wechsel Hosting → Wartung: neuer Abbuchungstag, Gutschrift, 12 neue Monate

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-09-28 11:30:21 +00:00
1 parent 379cc26dcd
commit 188db4b3c1
15 files changed
+2035 -12

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import nodemailer from 'nodemailer'
/**
* Mail-Senke für Tests (F25): nodemailer-jsonTransport statt SMTP. Nach
* setMailTransportForTests(mailSink()) (server/services/mailer.js)
* landet jede Mail in sent, in der Reihenfolge des Versands, als das Objekt, das nodemailer daraus
* erzeugt: from { address, name }, to/bcc [{ address, name }], subject, text, html, attachments
* (Inhalt base64). Es verlässt nichts den Prozess.
*/
export function mailSink() {
const json = nodemailer.createTransport({ jsonTransport: true })
const sent = []
return {
sent,
async sendMail(mail) {
const info = await json.sendMail(mail)
sent.push(JSON.parse(info.message))
return info
},
}
}