An open API service indexing awesome lists of open source software.

https://github.com/vfsoraki/mail_catchex

A simple STMP and HTTP server to catch and view received emails. To be used in Elixir apps.
https://github.com/vfsoraki/mail_catchex

elixir email

Last synced: about 1 year ago
JSON representation

A simple STMP and HTTP server to catch and view received emails. To be used in Elixir apps.

Awesome Lists containing this project

README

          

# MailCatchex

A super simple SMTP server with a simpler UI to catch all emails sent to it. Useful for seeing sent emails while developing.

Inspired by `mailcatcher` for Ruby.

## Installation

The package can be installed
by adding `mail_catchex` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[
{:mail_catchex, "~> 0.1.0", only: :dev}
]
end
```

## Usage

Add `MailCatchex.Supervisor` to your supervision tree. Like:

```
{MailCatchex.Supervisor, [smtp_port: 2525, http_port: 2526]}
```

Both ports are optional, and the above values are the default ones.

Then point your send address to `localhost:2525` and point browser to `localhost:2526` to see received emails.

## License

Do what you want. Some credits would be nice, but totally optional.