Giter Club home page Giter Club logo

agata's Introduction

Àgata

Build Status

Àgata

Àgata is a tool which runs a fake SMTP server and captures any email sent to it.

The SMTP server runs over 1025 port and the HTTP 8080 over 8080 by default. It is possible to configure this by modifying config/config.exs file.

Inspired in Ruby mailcatcher.

Installation

  1. git clone [email protected]:alfonsojimenez/agata.git
  2. mix deps.get
  3. mix run --no-halt
  4. Open http://127.0.0.1:8080/

Usage

You can send emails to Àgata through localhost:1025:

Phoenix / Bamboo

Add mailer configuration to config/config.exs of you app:

config :my_app, MyApp.Mailer,
  adapter: Bamboo.SMTPAdapter,
  server: "localhost",
  port: 1025,
  ssl: false

Rails

Configure your Rails app development environment to send emails to localhost:1025. Modify your config/environments/development.rb file:

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = { address: 'localhost', port: 1025 }

Symfony

You need to setup this environment variable to send emails to Àgata from your Symfony app:

MAILER_URL=smtp://localhost:1025?&username=&password=

Django

Add this configuration to settings.py file so your Django app could send emails to Àgata:

EMAIL_HOST = 'localhost'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_PORT = 1025
EMAIL_USE_TLS = False

agata's People

Contributors

alfonsojimenez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.