Custom Email Templates #45
3 changed files with 7 additions and 7 deletions
|
@ -166,7 +166,7 @@ export class EmailService {
|
|||
|
||||
const emailTemplateSource = meta.emailTemplate ?? EmailService.defaultEmailTemplate;
|
||||
// console.log(handlebar.)
|
||||
const template = handlebars.compile(emailTemplateSource)
|
||||
const template = handlebars.compile(emailTemplateSource);
|
||||
|
||||
const htmlToSend = template({
|
||||
subject,
|
||||
|
@ -175,7 +175,7 @@ export class EmailService {
|
|||
logo: meta.logoImageUrl ?? meta.iconUrl ?? iconUrl,
|
||||
url: this.config.url,
|
||||
host: this.config.host,
|
||||
})
|
||||
});
|
||||
|
||||
const transporter = nodemailer.createTransport({
|
||||
host: meta.smtpHost,
|
||||
|
|
|
@ -9,7 +9,7 @@ import { MetaService } from '@/core/MetaService.js';
|
|||
import type { Config } from '@/config.js';
|
||||
import { DI } from '@/di-symbols.js';
|
||||
import { DEFAULT_POLICIES } from '@/core/RoleService.js';
|
||||
import {EmailService} from "@/core/EmailService.js";
|
||||
import { EmailService } from "@/core/EmailService.js";
|
||||
|
||||
export const meta = {
|
||||
tags: ['meta'],
|
||||
|
|
|
@ -52,10 +52,10 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<template #label>{{ i18n.ts.customEmailTemplate.description }}</template>
|
||||
</MkCodeEditor>
|
||||
<I18n :src="i18n.ts.customEmailTemplate.reference" tag="small">
|
||||
<template #link>
|
||||
<a href="https://www.caniemail.com/">https://www.caniemail.com/</a>
|
||||
</template>
|
||||
</I18n>
|
||||
<template #link>
|
||||
<a href="https://www.caniemail.com/">https://www.caniemail.com/</a>
|
||||
</template>
|
||||
</I18n>
|
||||
</div>
|
||||
</MkFolder>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue