Skip to content

Commit

Permalink
clean up admin email
Browse files Browse the repository at this point in the history
  • Loading branch information
shihjay2 committed Oct 3, 2024
1 parent 1afd5c1 commit 492166b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pages/api/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,17 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
const htmlFinal = htmlContent.replace(/[\r\n]+/gm, '')
.replace('@title', 'HIE of One - New Account Confirmation')
.replace('@previewtext', 'Your HIE of One Trustee Account has been created!')
.replace('@paragraphtext', 'An HIE of One Trustee Account has been created for ' + req.body.email)
.replace('@2paragraphtext', '')
.replace('@paragraphtext', 'An HIE of One Trustee Account has been created for ' + req.body.email + '.')
.replace('@2paragraphtext', '<a href="${domain}/myTrustee">Your HIE of One Trustee Account Dashboard</a>')
.replaceAll('@link', url_full)
.replace('@buttonstyle', 'display:block')
.replace('@buttontext', 'Your Personal Health Record');
const htmlFinal1 = htmlContent.replace(/[\r\n]+/gm, '')
.replace('@title', 'HIE of One - New Account Confirmation')
.replace('@previewtext', 'An HIE of One Trustee Account has been created!')
.replace('@paragraphtext', 'An HIE of One Trustee Account has been created for ' + req.body.email + `. <a href="${domain}/myTrustee">Your HIE of One Trustee Account Dashboard</a>`)
.replace('@paragraphtext', 'An HIE of One Trustee Account has been created for ' + req.body.email + `.`)
.replace('@2paragraphtext', '')
.replaceAll('@link', url_full)
.replace('@buttonstyle', 'display:block')
.replace('@buttontext', 'Link to their Personal Health Record');
.replace('@buttonstyle', 'display:none');
const sendmail = await fetch(domain + "/api/sendmail", {
method: "POST",
headers: {
Expand Down

0 comments on commit 492166b

Please sign in to comment.