Skip to content

Commit a8be7e9

Browse files
authored
fix(help): fix email for help route (#922)
1 parent 503268e commit a8be7e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/sim/app/api/help/route.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ ${message}
9898

9999
// Send email using Resend
100100
const { data, error } = await resend.emails.send({
101-
from: `Sim <noreply@${env.EMAIL_DOMAIN || getEmailDomain()}>`,
102-
to: [`help@${env.EMAIL_DOMAIN || getEmailDomain()}`],
101+
from: `Sim <noreply@${getEmailDomain()}>`,
102+
to: [`help@${getEmailDomain()}`],
103103
subject: `[${type.toUpperCase()}] ${subject}`,
104104
replyTo: email,
105105
text: emailText,
@@ -121,7 +121,7 @@ ${message}
121121
// Send confirmation email to the user
122122
await resend.emails
123123
.send({
124-
from: `Sim <noreply@${env.EMAIL_DOMAIN || getEmailDomain()}>`,
124+
from: `Sim <noreply@${getEmailDomain()}>`,
125125
to: [email],
126126
subject: `Your ${type} request has been received: ${subject}`,
127127
text: `
@@ -137,7 +137,7 @@ ${images.length > 0 ? `You attached ${images.length} image(s).` : ''}
137137
Best regards,
138138
The Sim Team
139139
`,
140-
replyTo: `help@${env.EMAIL_DOMAIN || getEmailDomain()}`,
140+
replyTo: `help@${getEmailDomain()}`,
141141
})
142142
.catch((err) => {
143143
logger.warn(`[${requestId}] Failed to send confirmation email`, err)

0 commit comments

Comments
 (0)