Skip to content

A easy to use SMTP Mail Catcher for Devs written in GO.

Notifications You must be signed in to change notification settings

tego101/Cartero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cartero

✅ A fast and lightweight SMTP outgoing catch-all built with Golang, designed to intercept and display all outgoing emails in a user-friendly web interface.

Features

  • Catches outgoing emails via SMTP on port 1025.
  • Parses and Displays emails in a list format on localhost:10122.
  • Click on an email to view its parsed HTML and raw email data.
  • Extracts links from emails and displays them in plain text.

How It Works

Cartero listens for outgoing emails on SMTP port 1025, captures all email traffic, and presents a list of those emails through a local web interface. You can click on any email to see both the raw email data and its parsed HTML. Any links present in the email content are automatically extracted and displayed in plain text.

Setup

  1. Clone the repository:

    git clone https://github.com/tego101/cartero.git
    cd cartero
    
  2. Install dependencies:

    go mod tidy
    
  3. Run the application:

    go run main.go
    
  4. Visit http://localhost:10122 in your browser to view the captured emails.

Configuration (env variables)

  • SMTP_HOST: The host on which Cartero listens for outgoing emails. Default is localhost.
  • SMTP_PORT: The port on which Cartero listens for outgoing emails. Default is 1025.
  • WEB_HOST: The host on which the web interface is served. Default is localhost.
  • WEB_PORT: The port on which the web interface is served. Default is 10122.

Sample ENV file.

# .env
SMTP_PORT=1025
SMTP_HOST=0.0.0.0
WEB_PORT=10122
WEB_HOST=0.0.0.0

Dependencies

  • Go 1.18+
  • Templ
  • TailwindCSS
  • Alpine.js

Screen Shots

Inbox

Inbox View

E-Mail View

E-Mail View

License

MIT License. See the LICENSE file for more details.


About

A easy to use SMTP Mail Catcher for Devs written in GO.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published