use sender email address in env
This commit is contained in:
committed by
Jackson Harper
parent
bd5b289168
commit
7293469468
@ -28,7 +28,7 @@ export class ContentDisplayReportSubscriber
|
||||
if (!env.dev.isLocal) {
|
||||
// If we are in the local environment, just log a message, otherwise email the report
|
||||
await sendEmail({
|
||||
to: 'feedback@omnivore.app',
|
||||
to: env.sender.feedback,
|
||||
subject: 'New content display report',
|
||||
text: message,
|
||||
from: 'msgs@omnivore.app',
|
||||
|
||||
@ -7,6 +7,7 @@ import { authorized } from '../../utils/helpers'
|
||||
import { sendEmail } from '../../utils/sendEmail'
|
||||
import { AppDataSource } from '../../server'
|
||||
import { User } from '../../entity/user'
|
||||
import { env } from '../../env'
|
||||
|
||||
const INSTALL_INSTRUCTIONS_EMAIL_TEMPLATE_ID =
|
||||
'd-c576bdc3b9a849dab250655ba14c7794'
|
||||
@ -25,7 +26,7 @@ export const sendInstallInstructionsResolver = authorized<
|
||||
}
|
||||
|
||||
const sendInstallInstructions = await sendEmail({
|
||||
from: 'msgs@omnivore.app',
|
||||
from: env.sender.message,
|
||||
templateId: INSTALL_INSTRUCTIONS_EMAIL_TEMPLATE_ID,
|
||||
to: user?.email,
|
||||
})
|
||||
|
||||
@ -89,7 +89,7 @@ export function emailsServiceRouter() {
|
||||
|
||||
// forward non-newsletter emails to the registered email address
|
||||
const result = await sendEmail({
|
||||
from: 'msgs@omnivore.app',
|
||||
from: env.sender.message,
|
||||
to: newsletterEmail.user.email,
|
||||
subject: `Fwd: ${data.subject}`,
|
||||
html: data.html,
|
||||
|
||||
Reference in New Issue
Block a user