hngprojects / hng_boilerplate_nestjs

Description
Apache License 2.0
181 stars 105 forks source link

[FEAT] Email Notifications - Welcome Email After User Registration #45

Closed donfortune closed 1 week ago

donfortune commented 1 month ago

Description

Implement a feature to send a personalized welcome email to new users upon successful registration. This email should offer a warm introduction and essential information for using the platform effectively.

Acceptance Criteria

Welcome Email Endpoint [POST] /api/v1/welcome-email

Welcome Email:

Purpose

The purpose of this feature is to enhance user engagement and satisfaction by providing new users with a welcoming and informative introduction to the platform immediately after they register.

Requirements

Expected Outcome

The system should dispatch a personalized welcome email promptly upon receiving a valid request, ensuring that new users are welcomed and informed about the platform.

Request

[POST] /api/v1/welcome-email

Request Body:


{
 "userId": "String",
 "email": "String"
}

## successful response
{
 "message": "Welcome email sent successfully."
}

## error response
{
 "message": "Failed to send welcome email.",
 "error": "String",
 "statusCode": "Int"
}

### 
markessien commented 1 month ago

email service is centralised

Popsicool commented 1 month ago

This will be handled by email service