All Projects → msztolcman → mailtrap

msztolcman / mailtrap

Licence: MIT License
MailTrap has been renamed to Sendria. Please use Sendria now, MailTrap is abandoned. MailTrap is a SMTP server designed to run in your dev/test environment, that is designed to catch any email you or your application is sending, and display it in a web interface instead of sending to real world.

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
SCSS
7915 projects
HTML
75241 projects
CSS
56736 projects
Makefile
30231 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to mailtrap

Sendria
Sendria (formerly MailTrap) is a SMTP server designed to run in your dev/test environment, that is designed to catch any email you or your application is sending, and display it in a web interface instead of sending to real world.
Stars: ✭ 30 (+114.29%)
Mutual labels:  mail, email, developer-tools
Mosint
An automated e-mail OSINT tool
Stars: ✭ 184 (+1214.29%)
Mutual labels:  mail, email
Ptorx
📩🛡 Email privacy. Anonymously send and receive with alias forwarding.
Stars: ✭ 187 (+1235.71%)
Mutual labels:  mail, email
Enmime
MIME mail encoding and decoding package for Go
Stars: ✭ 246 (+1657.14%)
Mutual labels:  mail, email
Free Email Forwarding
The best free email forwarding for custom domains. Visit our website to get started (SMTP server)
Stars: ✭ 2,024 (+14357.14%)
Mutual labels:  mail, email
Ip Biter
IP-Biter: The Hacker-friendly E-Mail (but not only) Tracking Framework
Stars: ✭ 166 (+1085.71%)
Mutual labels:  mail, email
Mailu
Insular email distribution - mail server as Docker images
Stars: ✭ 3,151 (+22407.14%)
Mutual labels:  mail, email
N1 Ido
Ido is a clean, simple, Polymail-inspired theme for Mailspring
Stars: ✭ 118 (+742.86%)
Mutual labels:  mail, email
mailgrab
Simple and easy to use catch-all SMTP mail server and debugging tool
Stars: ✭ 92 (+557.14%)
Mutual labels:  mail, mailcatcher
laravel-postal
This library integrates Postal with the standard Laravel mail framework.
Stars: ✭ 20 (+42.86%)
Mutual labels:  mail, email
Mail
基于 Net.Mail 封装的发送邮件工具类。仅需一行代码,发送邮件。支持自定义邮件发出邮箱、发出方名字等。 支持SSL加密发送。 多个接收人、抄送人。支持群发独显。 支持添加附件、多个附件。 目前大部分主流邮箱全支持。
Stars: ✭ 87 (+521.43%)
Mutual labels:  mail, email
Django Mail Templated
Send emails using Django template system
Stars: ✭ 146 (+942.86%)
Mutual labels:  mail, email
Django mail admin
The one and only django app to receive & send mail with templates and multiple configurations.
Stars: ✭ 140 (+900%)
Mutual labels:  mail, email
Postmark.js
Official Node.js library for the Postmark API
Stars: ✭ 177 (+1164.29%)
Mutual labels:  mail, email
Mailspring
💌 A beautiful, fast and fully open source mail client for Mac, Windows and Linux.
Stars: ✭ 11,953 (+85278.57%)
Mutual labels:  mail, email
Forwardemail.net
The best free email forwarding for custom domains (Web Server)
Stars: ✭ 211 (+1407.14%)
Mutual labels:  mail, email
go-simple-mail
Golang package for send email. Support keep alive connection, TLS and SSL. Easy for bulk SMTP.
Stars: ✭ 298 (+2028.57%)
Mutual labels:  mail, email
Mailinabox
Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
Stars: ✭ 10,649 (+75964.29%)
Mutual labels:  mail, email
Postmark Php
The official PHP library for Postmark.
Stars: ✭ 117 (+735.71%)
Mutual labels:  mail, email
Meli
🐝 experimental terminal mail client, mirror of https://git.meli.delivery/meli/meli.git https://crates.io/crates/meli
Stars: ✭ 242 (+1628.57%)
Mutual labels:  mail, email

MailTrap has been renamed to Sendria.

Please use Sendria now, MailTrap is abandoned.

Sendria

sendria version sendria license sendria python compatibility say thanks!

Sendria (formerly MailTrap) is a SMTP server designed to run in your dev/test environment, that is designed to catch any email you or your application is sending, and display it in a web interface instead of sending to real world. It help you prevents sending any dev/test emails to real people, no matter what address you provide. Just point your app/email client to smtp://127.0.0.1:1025 and look at your emails on http://127.0.0.1:1080.

Sendria is built on shoulders of:

  • MailCatcher - original idea comes of this tool by Samuel Cochran.
  • MailDump - base source code of Sendria (version pre 1.0.0), by Adrian Mönnich.

If you like this tool, just say thanks.

Current stable version

1.0.0

Features

  • Catch all emails and store it for display.
  • Full support for multipart messages.
  • View HTML and plain text parts of messages (if given part exists).
  • View source of email.
  • Lists attachments and allows separate downloading of parts.
  • Download original email to view in your native mail client(s).
  • Mail appears instantly if your browser supports WebSockets.
  • Optionally, send webhook on every received message.
  • Runs as a daemon in the background, optionally in foreground.
  • Keyboard navigation between messages.
  • Optionally password protected access to web interface.
  • Optionally password protected access to SMTP (SMTP AUTH).
  • It's all Python!

Installation

Sendria should work on any POSIX platform where Python is available, it means Linux, MacOS/OSX etc.

Simplest way is to use Python's built-in package system:

python3 -m pip install sendria

You can also use pipx if you don't want to mess with system packages and install Sendria in virtual environment:

pipx install sendria

Voila!

Python version

Sendria is tested against Python 3.7+. Older Python versions may work, or may not.

If you want to run this software on Python 2.6+, just use MailDump.

How to use

After installing Sendria, just run command:

sendria --db mails.sqlite

Now send emails through smtp://127.0.0.1:1025, ie.:

echo 'From: Sendria <[email protected]>\n'\
'To: You <[email protected]>\n'\
'Subject: Welcome!\n\n'\
'Welcome to Sendria!' | \
  curl smtp://localhost:1025 --mail-from [email protected] \
    --mail-rcpt [email protected] --upload-file -

And finally look at Sendria GUI on 127.0.0.1:1080.

If you want more details, run:

sendria --help

for more info, ie. how to protect access to gui.

API

Sendria offers RESTful API you can use to fetch list of messages or particular message, ie. for testing purposes.

You can use excellent httpie tool:

% http localhost:1080/api/messages/
HTTP/1.1 200 OK
Content-Length: 620
Content-Type: application/json; charset=utf-8
Date: Wed, 22 Jul 2020 20:04:46 GMT
Server: Sendria/1.0.0 (https://github.com/msztolcman/sendria)

{
    "code": "OK",
    "data": [
        {
            "created_at": "2020-07-22T20:04:41",
            "id": 1,
            "peer": "127.0.0.1:59872",
            "recipients_envelope": [
                "[email protected]"
            ],
            "recipients_message_bcc": [],
            "recipients_message_cc": [],
            "recipients_message_to": [
                "You <[email protected]>"
            ],
            "sender_envelope": "[email protected]",
            "sender_message": "Sendria <[email protected]>",
            "size": 191,
            "source": "From: Sendria <[email protected]>\nTo: You <[email protected]>\nSubject: Welcome!\nX-Peer: ('127.0.0.1', 59872)\nX-MailFrom: [email protected]\nX-RcptTo: [email protected]\n\nWelcome to Sendria!\n",
            "subject": "Welcome!",
            "type": "text/plain"
        }
    ]
}

There are available endpoints:

  • GET /api/messages/ - fetch list of all emails
  • DELETE /api/messages/ - delete all emails
  • GET /api/messages/{message_id}.json - fetch email metadata
  • GET /api/messages/{message_id}.plain - fetch plain part of email
  • GET /api/messages/{message_id}.html - fetch HTML part of email
  • GET /api/messages/{message_id}.source - fetch source of email
  • GET /api/messages/{message_id}.eml - download whole email as an EML file
  • GET /api/messages/{message_id}/parts/{cid} - download particular attachment
  • DELETE /api/messages/{message_id} - delete single email

Docker

There is also available Docker image of Sendria. If you want to try, just run:

docker run -p 1025:1025 -p 1080:1080 msztolcman/sendria

Help!

I'm backend developer, not a frontend guy nor designer... If you are, and want to help, just mail me!. I think GUI should be redesigned, or at least few minor issues could be solved. Also, project requires some logo and/or icon. Again, do not hesitate to mail me if you want and can help :)

Configure Rails

For your rails application just set in your environments/development.rb:

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = { :address => '127.0.0.1', :port => 1025 }
config.action_mailer.raise_delivery_errors = false

Configure Django

To configure Django to work with Sendria, add the following to your projects' settings.py:

if DEBUG:
    EMAIL_HOST = '127.0.0.1'
    EMAIL_HOST_USER = ''
    EMAIL_HOST_PASSWORD = ''
    EMAIL_PORT = 1025
    EMAIL_USE_TLS = False

Behind nginx

If you want to hide Sendria behind nginx (ie. to terminate ssl) then you can use example config (see in addons).

Supervisord

To start Sendria automatically with Supervisor there is in addons example config file for this purpose.

Authors

Contact

If you like or dislike this software, please do not hesitate to tell me about this me via email ([email protected]).

If you find bug or have an idea to enhance this tool, please use GitHub's issues.

ChangeLog

v1.0.0

  • complete rewrite of backend part. Sendria is using asyncio and aio-libs now:
  • using asynchronous version of libraries drastically improved performance
  • Sendria now can send a webhook about every received message
  • show in GUI information about envelope sender and recipients
  • all API requests has their own namespace now: /api
  • allow to replace name of application or url in template
  • block truncating all messages from GUI (on demand)
  • fixed issues with WebSockets, should refresh mails list and reconnect if disconnected
  • fixed issues with autobuilding assets
  • many cleanups and reformatting code
  • addons for nginx and supervisor

Backward incompatible changes:

  • all api's requests are now prefixed with /api (look at API section)
  • --htpasswd cli param is renamed to --http-auth

v0.1.6

  • fixed issue with old call do gevent.signal
  • minimum gevent version set to 1.5.0

v0.1.4

  • bumped dependencies - security issues (dependabot)

v0.1.3

v0.1.2

  • fixed encoding issues

v0.1.0

  • better support for macOS/OSX
  • links now opens in new tab/window (added 'target="blank"')
  • show message if there is no assets generated and info how to to generate them
  • added debugs for SMTP when in debug mode
  • added support for Pipenv
  • HTML tab is default now when looking at particular message
  • converted to support Python 3.6+, drop support for lower Python versions
  • added SMTP auth support (look at pull request 28 )
  • copy from MailDump v0.5.6
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].