create html part 7
This commit is contained in:
parent
aeef9a1b7c
commit
d4a0e97776
1 changed files with 6 additions and 4 deletions
10
broker.ts
10
broker.ts
|
@ -38,11 +38,11 @@ async function sendEmail(content: string) {
|
||||||
const info = await transporter.sendMail({
|
const info = await transporter.sendMail({
|
||||||
from: '"The Oracle" <the.oracle@holy.mountain>',
|
from: '"The Oracle" <the.oracle@holy.mountain>',
|
||||||
to: "Christopher.Hase@telekom.com;test@mailhog.local",
|
to: "Christopher.Hase@telekom.com;test@mailhog.local",
|
||||||
subject: "Your New Horoscope Is Ready",
|
subject: "Your Horoscope Is Ready",
|
||||||
text: content,
|
text: content,
|
||||||
//html: "<p> ${content} </p>"
|
//html: "<p> ${content} </p>"
|
||||||
//html: html(content)
|
html: html(content)
|
||||||
html: content
|
//html: content
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("E-Mail sent: ", info.messageId);
|
console.log("E-Mail sent: ", info.messageId);
|
||||||
|
@ -79,6 +79,8 @@ function html(input: string): string {
|
||||||
//TODO: process every line...
|
//TODO: process every line...
|
||||||
function processLine(input: string): string {
|
function processLine(input: string): string {
|
||||||
|
|
||||||
return input + "\n";
|
//return input + "\n";
|
||||||
|
//"<p> ${content} </p>"
|
||||||
|
return "<p>" + input + "</p>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue