Skip to content

Application to send emails consuming a queue from a RabbitMQ server

Notifications You must be signed in to change notification settings

cms-orbits/cms-naiad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMS Naiad

Build Status

This application is an Email Service that consumes requests from a RabbitMQ server and sends mails according with the properties in each message, this properties must be in JSON Format.

Configuration file

Inside of the configuration file there are some properties that need to be set in order to run the application

  • Gmail account
  • RabbitMQ connection

Gmail account

The Gmail account has two parameters, the email direction and password

---
spring:
  #Email
  mail:
    host: smtp.gmail.com
    username: [email protected]
    password: somepassword

RabbitMQ connection

This connection will provide the queue of messages so that the application read and will send them to the recipients..

---
spring:
  rabbitmq:
    host: 192.168.187.133
    port: 5672
    username: rabbit
    password: rabbit1

Local Run Instructions

  1. mvn install
  2. mvn spring-boot:run

Email sending test

The application can be tested sending a new message to the RabbitMQ Server using a terminale

$ rabbitmqadmin publish exchange=cmsExchange routing_key=user.created \
    properties='{"content_type":"application/json"}' \
    payload='{"name": "Joel Santos", \
    "to":"[email protected]", \ 
    "from":"[email protected]", \
    "body":"Welcome to CMS Challenge", \
    "subject":"Signup CMS"}'
    

About

Application to send emails consuming a queue from a RabbitMQ server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published