Skip to content

Commit

Permalink
standardize email address from PIMS system
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarkowsky committed Dec 18, 2024
1 parent 5cb5166 commit d864d3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions express-api/src/constants/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const config = {
},
contact: {
toEmail: process.env.CONTACT_EMAIL,
systemEmail: 'PIMS System <[email protected]>',
},
notificationTemplate: {
title: 'PIMS',
Expand Down
2 changes: 1 addition & 1 deletion express-api/src/controllers/reports/reportsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const submitErrorReport = async (req: Request, res: Response) => {
const email: IEmail = {
to: [config.contact.toEmail],
cc: [req.user.email],
from: '[email protected]', // Made up for this purpose.
from: config.contact.systemEmail, // Made up for this purpose.
bodyType: EmailBody.Html,
subject: 'PIMS Error Report Submission',
body: emailBody,
Expand Down
2 changes: 1 addition & 1 deletion express-api/src/utilities/failedEmailCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const failedEmailCheck = async () => {
const email: IEmail = {
to: [config.contact.toEmail],
cc: [],
from: 'PIMS System <[email protected]>', // Made up for this purpose.
from: config.contact.systemEmail, // Made up for this purpose.
bodyType: EmailBody.Html,
subject: 'PIMS Notifications Warning',
body: emailBody,
Expand Down

0 comments on commit d864d3f

Please sign in to comment.