mirror of
https://github.com/paricafe/misskey.git
synced 2025-01-31 06:50:16 -06:00
fix email service
This commit is contained in:
parent
cb42fc5b44
commit
ac873ae180
1 changed files with 2 additions and 3 deletions
|
@ -59,7 +59,6 @@ export class EmailService {
|
|||
} : undefined,
|
||||
} as any);
|
||||
|
||||
const siteName = meta.name || this.config.host;
|
||||
|
||||
const htmlContent = `<!doctype html>
|
||||
<html>
|
||||
|
@ -137,7 +136,7 @@ export class EmailService {
|
|||
</footer>
|
||||
</main>
|
||||
<nav>
|
||||
<a href="${ this.config.url }">${ siteName }</a>
|
||||
<a href="${ this.config.url }">${ this.config.host }</a>
|
||||
</nav>
|
||||
</body>
|
||||
</html>`;
|
||||
|
@ -149,7 +148,7 @@ export class EmailService {
|
|||
const info = await transporter.sendMail({
|
||||
from: this.meta.email!,
|
||||
to: to,
|
||||
subject: `[${siteName}] ${subject}`,
|
||||
subject: subject,
|
||||
text: text,
|
||||
html: inlinedHtml,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue