Giter Club home page Giter Club logo

email.management's Introduction

Send e-mails, create and edit templates using Rest API

How to run

Define a Secret

Before running this service, you must setup your secret. This secret is used as encryption key in order to save your email credentials on database. Be careful: don't use the default value.

To do that, go to docker-compose.yaml and change the following value:

environment:
    JwtSecret: "change this value" # This line is your Jwt Token symetric key
    PasswordSecret: "change this value" # This line is your Password Secret Key (used to encrypt your password on database)

Running

After running the code below, you can access the service by accessing http://localhost:4000

docker compose up -d

Check the endpoints definitions

After running, you can see the endpoint definitions in http://localhost:4000/swagger/index.html

email.management's People

Contributors

lucassklp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

email.management's Issues

Need Help for POST API /api/templates/send{id}

Hi @lucassklp Thanks for developing an amazing tool, I was testing this project for template management and found that http://localhost:4000/api/templates/send/{1} is not sending the email to the person given in the payload of POST request, but resulting 200 Ok.
request:
curl -X 'POST'
'http://localhost:4000/api/templates/send/2'
-H 'accept: /'
-H 'Content-Type: application/json'
-d '{
"token": "masked_token",
"recipients": [
{
"email": "masked_email",
"args": {
"name": "name"
}
}
]
}'

response:
image

but when I test the template using "/api/templates/test", I am able to receive the emails.

Please let me know if there is bug here, tried looking into code, couldn't crack it so far.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.