Giter VIP home page Giter VIP logo

simple-mailer-python's Introduction

RSKpyMailer: Simple-Py-Mailer

This app enables you to send email from a form.

This project assumes you have a SMTP relay server with no authentication required, so that means your relay must accept this app ip address(host) to be added as a valid sender.

This also assumes you have a valid captcha v2 key from google, paired with the sender.

Access to this app via POST request with json object as body, with the following variables:

  • reason. If this is not present, it will assume you have only one route for mail.
  • name
  • email
  • message
  • subject
  • g-recaptcha-response

Usage

  1. Clone this repository.
  2. Modify the smtp_config.txt file with your SMTP configuration and details. Note that the 5th line defines all the routes for mail. If you want to add more routes, add them in the same format as the example.
  3. Build and run the Docker container using the following command: docker-compose up --build
  4. The contact API will be available at http://localhost:3001/contact. This is accesible via POST request, check variables that must be send as urlencoded-form-data.

simple-mailer-python's People

Contributors

eliaspcs avatar

Watchers

Elias Achi avatar

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.