This commit is contained in:
syuilo 2021-11-12 21:11:21 +09:00
parent 9ea7d75aa4
commit cfa38e875c

View file

@ -21,8 +21,8 @@ export async function sendEmail(to: string, subject: string, html: string, text:
proxy: config.proxySmtp,
auth: enableAuth ? {
user: meta.smtpUser,
pass: meta.smtpPass
} : undefined
pass: meta.smtpPass,
} : undefined,
} as any);
try {
@ -33,7 +33,7 @@ export async function sendEmail(to: string, subject: string, html: string, text:
subject: subject,
text: text,
html: `<!doctype html>
<html>
<html>
<head>
<meta charset="utf-8">
<title>${ subject }</title>
@ -111,8 +111,7 @@ export async function sendEmail(to: string, subject: string, html: string, text:
<a href="${ config.url }">${ config.host }</a>
</nav>
</body>
</html>
`
</html>`,
});
logger.info('Message sent: %s', info.messageId);