create html part 7

This commit is contained in:
Christopher Hase 2025-03-27 09:52:03 +01:00
parent aeef9a1b7c
commit d4a0e97776

View file

@ -38,11 +38,11 @@ async function sendEmail(content: string) {
const info = await transporter.sendMail({
from: '"The Oracle" <the.oracle@holy.mountain>',
to: "Christopher.Hase@telekom.com;test@mailhog.local",
subject: "Your New Horoscope Is Ready",
subject: "Your Horoscope Is Ready",
text: content,
//html: "<p> ${content} </p>"
//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";
//"<p> ${content} </p>"
return "<p>" + input + "</p>";
}