File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ async function prepareEmail<T extends TemplateData>({
8989} : PrepareEmailProps < T > ) : Promise < PreparedEmail > {
9090 const emailRenderProps = { ...templateProps , APP_URL : env . APP_URL }
9191
92- const from = 'Interval <help@interval.com>'
92+ const from = env . EMAIL_FROM
9393 const subject = subjectBuilder ( templateProps )
9494 const html = await emailTemplate . render ( template , emailRenderProps )
9595
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ const schema = z.object({
2121
2222 // emails
2323 POSTMARK_API_KEY : z . string ( ) . optional ( ) ,
24+ EMAIL_FROM : z . string ( ) . optional ( ) . default ( 'Interval <help@interval.com>' ) ,
2425
2526 // authentication
2627 WORKOS_API_KEY : z . string ( ) . optional ( ) ,
You can’t perform that action at this time.
0 commit comments