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