Skip to content

Àgata - SMTP server which catches any email sent to it

License

Notifications You must be signed in to change notification settings

alfonsojimenez/agata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

À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 git@github.com: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

About

Àgata - SMTP server which catches any email sent to it

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published