bcgov / bcgov/zeva2

ZEVA2 - email service module

Open
#34 0 comments 0 reactions 1 assignee Claimed by @rogerlcleung View on GitHub
Medium Task
Dominant language
TypeScript
Stars
1
Forks
6
Avg merge
14h 22m
Merged PRs (30d)
32

Description

**Describe the task**
Create a module that exports functions that allow developers to send emails using CHES. Please see the `send_email.py` file in `backend/api/services` of `zeva1` for inspiration.

**Purpose**
This will allow us to send emails in the bullmq service (and elsewhere) when certain actions are performed in the system (e.g. a credit transfer is initiated, a new zev is submitted, etc.)

**Acceptance Criteria**
- [ ] Define the needed environment variables (e.g. CHES clientId, clientSecret, etc.) in docker-compose
- [ ] Implement a getToken() function that gets a CHES access token (can use zeva1's CHES credentials for now)
- [ ] Implement a sendEmail() function that gets a CHES access token, and sends an email using the CHES API + the token

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.