TaskFlow includes a dedicated notification microservice that sends transactional emails to users when admins take action on their tasks. Emails are dispatched through EmailJS using server-side API calls, keeping your SMTP credentials out of the frontend entirely.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Ajith66310/task-manager-full/llms.txt
Use this file to discover all available pages before exploring further.
When emails are sent
TaskFlow triggers an email notification in two scenarios:- Admin marks a task as completed — when an admin calls
PUT /api/tasks/:idand setsstatustocompleted, the task service fetches the task owner’s email from the user service and queues an email. - Admin verifies a task — when an admin calls
PATCH /api/admin/tasks/:id/verify, a verification confirmation email is sent to the task owner. - Admin assigns a task — when an admin calls
POST /api/admin/tasks/assign, an assignment notification email is sent to the assigned user.
Email payload
Each email sent to the notification service includes:| Field | Description |
|---|---|
email | Recipient’s email address |
subject | Email subject line (e.g. "Task Completed by Admin") |
message | Plain-text message body (e.g. "Hello Ada, your task … has been …") |
html | HTML version of the email body |
Notification service endpoint
The notification microservice runs independently on port 5003 and exposes a single endpoint:Fire-and-forget pattern
Email dispatch is non-blocking. The task service sends the notification request to the microservice in the background using afetch call that is not awaited:
EmailJS configuration
The notification service reads four environment variables at startup. All four must be set for emails to send successfully:| Variable | Description |
|---|---|
EMAILJS_SERVICE_ID | The EmailJS service ID linked to your email provider |
EMAILJS_TEMPLATE_ID | The ID of the EmailJS template to use |
EMAILJS_PUBLIC_KEY | Your EmailJS public (user) API key |
EMAILJS_PRIVATE_KEY | Your EmailJS private API key for server-side calls |
.env file or your container environment:
{{email}}, {{subject}}, {{message}}, and {{html_content}}.
The notification service does not validate that the recipient address resolves to an active inbox. Ensure users provide a valid email address during signup.