From d4a0e977765159b6d0e21f0a50e9cfe19596dd21 Mon Sep 17 00:00:00 2001 From: Christopher Hase Date: Thu, 27 Mar 2025 09:52:03 +0100 Subject: [PATCH] create html part 7 --- broker.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/broker.ts b/broker.ts index 3885fd9..b85190e 100644 --- a/broker.ts +++ b/broker.ts @@ -38,11 +38,11 @@ async function sendEmail(content: string) { const info = await transporter.sendMail({ from: '"The Oracle" ', to: "Christopher.Hase@telekom.com;test@mailhog.local", - subject: "Your New Horoscope Is Ready", + subject: "Your Horoscope Is Ready", text: content, //html: "

${content}

" - //html: html(content) - html: content + html: html(content) + //html: content }); console.log("E-Mail sent: ", info.messageId); @@ -79,6 +79,8 @@ function html(input: string): string { //TODO: process every line... function processLine(input: string): string { - return input + "\n"; + //return input + "\n"; + //"

${content}

" + return "

" + input + "

"; } \ No newline at end of file