From 48692e2ab56761d2838096710fc01168daae3ae7 Mon Sep 17 00:00:00 2001 From: Kristen Cooke Date: Wed, 10 Jun 2020 16:53:24 -0700 Subject: [PATCH] feat: Organisation access requested email --- .../requestForOrganisationAccess.js | 33 ++++++++++++++++--- app/server/tasks/sendMail.js | 3 +- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/app/server/emailTemplates/requestForOrganisationAccess.js b/app/server/emailTemplates/requestForOrganisationAccess.js index 4edee181d8..06766acaa2 100644 --- a/app/server/emailTemplates/requestForOrganisationAccess.js +++ b/app/server/emailTemplates/requestForOrganisationAccess.js @@ -1,14 +1,37 @@ +const createUrl = require('../helpers/createUrl'); const createOrganisationAccessRequestMail = ({ email, firstName, lastName, - operatorName + operatorName, + contactEmail }) => { return ` -

${firstName}

-

${lastName}

-

${email}

-

${operatorName}

+ + + + + + + + + + +
+

Province of British Columbia

+

Clean BC Industrial Incentive Program

+
+

Hello, ${firstName} ${lastName}.

+

Thank you for registering for the CleanBC Industrial Incentive Program.

+

You have requested access to submit an application on behalf of ${operatorName}.

+

Your request is being processed. Please be advised that if you are not listed as the Operation Representative for GHG reporting, confirmation that you are authorized to complete this application will be sought from that representative.

+

You will be notified once your request for access has been approved.

+

If you have any questions during the application process, please contact ${contactEmail}

+
+

Sent to: ${email}

+

On behalf of the Climate Action Secretariat & the CleanBC Industrial Incentive Program

`; }; diff --git a/app/server/tasks/sendMail.js b/app/server/tasks/sendMail.js index 460d8b72f7..b8be32b3c4 100644 --- a/app/server/tasks/sendMail.js +++ b/app/server/tasks/sendMail.js @@ -125,7 +125,8 @@ module.exports = async ({ firstName, lastName, facilityName, - operatorName + operatorName, + contactEmail: ADMIN_EMAIL_SHORT }); break; case 'organisation_access_approved':