mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
refactor
This commit is contained in:
parent
13513c913c
commit
5b2d5421c2
@ -21,8 +21,8 @@ export async function sendEmail(to: string, subject: string, html: string, text:
|
|||||||
proxy: config.proxySmtp,
|
proxy: config.proxySmtp,
|
||||||
auth: enableAuth ? {
|
auth: enableAuth ? {
|
||||||
user: meta.smtpUser,
|
user: meta.smtpUser,
|
||||||
pass: meta.smtpPass
|
pass: meta.smtpPass,
|
||||||
} : undefined
|
} : undefined,
|
||||||
} as any);
|
} as any);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -111,8 +111,7 @@ export async function sendEmail(to: string, subject: string, html: string, text:
|
|||||||
<a href="${ config.url }">${ config.host }</a>
|
<a href="${ config.url }">${ config.host }</a>
|
||||||
</nav>
|
</nav>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>`,
|
||||||
`
|
|
||||||
});
|
});
|
||||||
|
|
||||||
logger.info('Message sent: %s', info.messageId);
|
logger.info('Message sent: %s', info.messageId);
|
||||||
|
Loading…
Reference in New Issue
Block a user