MailHedgehog

command module
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2024 License: MIT-0 Imports: 1 Imported by: 0

README

MailHedgehog

Email previewer. Inspired by MailHog. Allows to create multiple rooms with different credentials

mailhedgehog.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
  config:
    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"
# dbConnectionMongo:
#  connections:
#    mongodb:
#      uri: 127.0.0.1:27017
#      db_name: mailhedgehog
#      db_user: root
#      db_pass: secret

Credits

  • Think Studio

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL