This microservice is part of my personal blog project https://github.com/maxwellobi/nodejs-personal-blog-website. This service sends email using SenecaJs and SendGrid
This service uses tcp as the seneca transport merchanism to listen for incoming connections and transmit messages.
Redis is used to manage sessions across all the services. All messages to this service includes a session id. The seneca middleware checks if the session id exists in redis before fufilling the request.
The message for this service is defined as
{
sessionid: 'current_session_id',
receiver_email: '[email protected]',
receiver_name: 'Email Receiver',
subject: 'Testing Email Microservice',
body: 'This is a body <br/>'
}