Improve email branding and SMTP envelope
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { getMailFrom, getMailTransport } from "./transport";
|
||||
import { getMailEnvelopeFrom, getMailFrom, getMailTransport } from "./transport";
|
||||
|
||||
export async function sendEmail(
|
||||
to: string,
|
||||
@@ -8,6 +8,7 @@ export async function sendEmail(
|
||||
const transport = getMailTransport();
|
||||
await transport.sendMail({
|
||||
from: getMailFrom(),
|
||||
envelope: { from: getMailEnvelopeFrom() },
|
||||
to,
|
||||
subject: template.subject,
|
||||
html: template.html,
|
||||
|
||||
Reference in New Issue
Block a user