try to fix email style...
This commit is contained in:
parent
ddc487cb39
commit
e048d951fc
1 changed files with 14 additions and 11 deletions
|
@ -34,16 +34,7 @@ export async function sendEmail(
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// TODO: htmlサニタイズ
|
// TODO: htmlサニタイズ
|
||||||
const info = await transporter.sendMail({
|
const style = `
|
||||||
from: meta.email!,
|
|
||||||
to: to,
|
|
||||||
subject: subject,
|
|
||||||
text: text,
|
|
||||||
html: `<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>${subject}</title>
|
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
background: #191724;
|
background: #191724;
|
||||||
|
@ -101,9 +92,21 @@ export async function sendEmail(
|
||||||
nav > a {
|
nav > a {
|
||||||
color: #6e6a86;
|
color: #6e6a86;
|
||||||
}
|
}
|
||||||
</style>
|
</style>`
|
||||||
|
const info = await transporter.sendMail({
|
||||||
|
from: meta.email!,
|
||||||
|
to: to,
|
||||||
|
subject: subject,
|
||||||
|
text: text,
|
||||||
|
html: `<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>${subject}</title>
|
||||||
|
${style}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
${style}
|
||||||
<main>
|
<main>
|
||||||
<header>
|
<header>
|
||||||
<img src="${meta.logoImageUrl || meta.iconUrl || iconUrl}" height="100"/>
|
<img src="${meta.logoImageUrl || meta.iconUrl || iconUrl}" height="100"/>
|
||||||
|
|
Loading…
Reference in a new issue