Skip to content

Commit

Permalink
feat: 'Draft application started' email
Browse files Browse the repository at this point in the history
  • Loading branch information
kriscooke authored and matthieu-foucault committed Jun 22, 2020
1 parent 36b2a2c commit 19b4bc5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
43 changes: 37 additions & 6 deletions app/server/emailTemplates/draftApplicationStarted.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,47 @@
const createUrl = require('../helpers/createUrl');
const createDraftApplicationStartedMail = ({
email,
firstName,
lastName,
operatorName,
facilityName
facilityName,
contactEmail
}) => {
return `
<p>${firstName}<p>
<p>${lastName}<p>
<p>${email}<p>
<p>${operatorName}<p>
<p>${facilityName}<p>
<table align="center" border="1" cellpadding="0" cellspacing="0" width="600">
<tr>
<td style="padding: 40px 0 30px 0; " align="center">
<h2 style="text-decoration: underline">Province of British Columbia</h2>
<h3>Clean BC Industrial Incentive Program</h3>
</td>
</tr>
<tr style="border-top: 0px">
<td style="padding: 20px 10px 30px 10px;" >
<h3>Hello, ${firstName} ${lastName}.</h3>
<h4>Thank you for starting an application to the CleanBC Industrial Incentive Program.</h4>
<p>You have started an application on behalf of <strong>${operatorName}</strong> for the <strong>${facilityName}</strong> facility.</p>
<p>Further steps are necessary to complete a CIIP application:</p>
<ul>
<li>
A certification request has been sent to the certifier from your organization that you indicated at the bottom of the application. To complete your application, please ensure that person reviews and certifies the information provided in your application.
<ul>
<li>You will be notified via email when this step is complete.</li>
</ul>
</li>
<li>
Once you have received notification that the application has been certified, you will need to <a href=${createUrl()}>log in to the CIIP Portal</a> to submit the application.
</li>
<li>Once submitted, you will be notified via email when your application has been approved or if any further information is required to process your application.</li>
</ul>
<p>If you have any questions during the application process, please contact <a href="mailto:${contactEmail}?subject=CIIP Portal Inquiry">${contactEmail}</a></p>
</td>
</tr>
<tr>
<td style="padding: 20px 10px 30px 10px;">
<p>Sent to: ${email}</p>
<p>On behalf of the Climate Action Secretariat &amp; the CleanBC Industrial Incentive Program</p></td>
</tr>
</table>
`;
};

Expand Down
4 changes: 2 additions & 2 deletions app/server/tasks/sendMail.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ module.exports = async ({
lastName,
email,
operatorName,
facilityName
facilityName,
contactEmail: ADMIN_EMAIL_SHORT
});
email = process.env.ADMIN_EMAIL;
break;
default:
htmlContent = null;
Expand Down

0 comments on commit 19b4bc5

Please sign in to comment.