MailHedgehog
Email previewer. Inspired by MailHog.
Allows to create multiple rooms with different credentials
![mailhedgehog.gif](https://github.com/mailhedgehog/MailHedgehog/raw/v1.2.1/docs%2Fimg%2Fmailhedgehog.gif)
Configuration and usage
MailHedgehog init
Usage
MailHedgehog serve [.mh-config.yml]
Development
go mod tidy
go mod verify
Example configuration:
#.mh-config.yml
smtp:
port: 1026
http:
port: 8026
# path: box
allow_origins: "http://localhost:5173"
assets_root: "./public"
storage:
use: directory
per_room_limit: 100
directory:
path: "/home/me/work/go/mailhog/_storage"
# use: mongodb
# # per_room_limit: 100
# mongodb:
# connection: mongodb
# collection: emails_dev
ui:
file: ui.json
authentication:
admin: testuser
# use: mongodb
# mongodb:
# connection: mongodb
# collection: users_dev
use: file
file:
path: ".mh-authfile"
sharing:
use: csv
csv:
path: ".mh-sharing.csv"
# db:
# connections:
# mongodb:
# uri: 127.0.0.1:27017
# db_name: mailhedgehog
# db_user: root
# db_pass: secret
Credits