-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #798 from credebl/feat/delete-invitations-email
feat: send email for delete organization invitations
- Loading branch information
Showing
11 changed files
with
223 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
apps/organization/templates/delete-organization-invitations.template.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
export class DeleteOrgInvitationsEmail { | ||
|
||
public sendDeleteOrgMemberEmailTemplate( | ||
email: string, | ||
orgName: string, | ||
orgRoles: string[] | ||
): string { | ||
|
||
const orgRoleNames = 0 < orgRoles.length ? orgRoles.join(', ') : ''; | ||
return `<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title></title> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body style="margin: 0px; padding:0px; background-color:#F9F9F9;"> | ||
<div style="margin: auto; max-width: 450px; padding: 20px 30px; background-color: #FFFFFF; display:block;"> | ||
<div style="display: block; text-align:center; background-color: white; padding-bottom: 20px; padding-top: 20px;"> | ||
<img src="${process.env.BRAND_LOGO}" alt="${process.env.PLATFORM_NAME} logo" style="max-width:100px; background: white; padding: 5px;border-radius: 5px;" width="100%" height="fit-content" class="CToWUd" data-bit="iit"> | ||
</div> | ||
<div style="font-family: Montserrat; font-style: normal; font-weight: 500; | ||
font-size: 15px; line-height: 24px;color: #00000;"> | ||
<p style="margin-top:0px"> | ||
Hello ${email}, | ||
</p> | ||
<p> | ||
We would like to inform you that the organization “${orgName}” has removed their participation as a ${orgRoleNames} on CREDEBL. | ||
<hr style="border-top:1px solid #e8e8e8" /> | ||
<footer style="padding-top: 10px;"> | ||
<div style="font-style: italic; color: #777777"> | ||
For any assistance or questions while accessing your account, please do not hesitate to contact the support team at ${process.env.PUBLIC_PLATFORM_SUPPORT_EMAIL}. | ||
</div> | ||
<p style="margin-top: 6px;"> | ||
© ${process.env.POWERED_BY} | ||
</p> | ||
</footer> | ||
</div> | ||
</div> | ||
</body> | ||
</html>`; | ||
|
||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.