Compare commits

...

1 Commits

Author SHA1 Message Date
Tom Moor bb6c15a552 chore: Always log outgoing emails in development 2025-03-15 14:18:16 -04:00
+6 -3
View File
@@ -122,11 +122,11 @@ export class Mailer {
sendMail = async (data: SendMailOptions): Promise<void> => {
const { transporter } = this;
if (!transporter) {
Logger.info(
if (env.isDevelopment) {
Logger.debug(
"email",
[
`Attempted to send email but no transport configured.`,
`Sending email:`,
``,
`--------------`,
`From: ${data.from.address}`,
@@ -138,6 +138,9 @@ export class Mailer {
data.text,
].join("\n")
);
}
if (!transporter) {
Logger.warn("No mail transport available");
return;
}