https://github.com/inbucket/fauxmailer
Generate random emails, sent via SMTP
https://github.com/inbucket/fauxmailer
email go golang mail smtp
Last synced: about 1 year ago
JSON representation
Generate random emails, sent via SMTP
- Host: GitHub
- URL: https://github.com/inbucket/fauxmailer
- Owner: inbucket
- License: mit
- Created: 2017-12-23T22:37:50.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-07-11T02:03:08.000Z (almost 2 years ago)
- Last Synced: 2024-07-12T03:37:35.753Z (almost 2 years ago)
- Topics: email, go, golang, mail, smtp
- Language: Go
- Size: 47.9 KB
- Stars: 17
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
fauxmailer
=============================================================================
[](https://travis-ci.org/inbucket/fauxmailer)
fauxmailer will generate random emails, and send them via SMTP.
The initial goal for this project is to populate a demo instance of
[Inbucket].
## Usage
Usage of fauxmailer:
-every duration
sends a message every if non-zero
-host string
host:port of SMTP server (default "localhost:25")
-signature string
signature (default "Generated by https://github.com/inbucket/fauxmailer")
-silent
disable to/from address log
-tofile string
optional file containing newline separated To addresses
-verbose
enable verbose output
### Examples
To send a single message to a random address via your local mail server:
fauxmailer -verbose
To send about four messages per second to your local Inbucket server:
fauxmailer -host localhost:2500 -every 250ms
To send a message every five minutes to a random address selected from the
contents of `addresses.txt`:
fauxmailer -host exchange.mycorp:25 -tofile addresses.txt -every 5m
### Sample Output
Example of fauxmailer output with `-verbose` flag:
2018/11/01 13:55:16 jakob@powlowskihowell.net -> pansy@pouros.info
2018/11/01 13:55:16 Sending:
Content-Type: multipart/alternative;
boundary=enmime-389602d4-f07c-413e-a30c-2b48e73db32f
Date: Thu, 01 Nov 2018 13:55:16 -0700
From:
Mime-Version: 1.0
Subject: Engineer Proactive E-Business with Beer, Weissnat and Boyle
To:
--enmime-389602d4-f07c-413e-a30c-2b48e73db32f
Content-Type: text/plain; charset=utf-8
Aut sequi illo qui vacuus. Sint bellicus blanditiis. Laboriosam congregatio ab laborum ars.
Degero vigilo contra varietas qui occaecati debeo. Tempora animi appello ad est. Et ipsum desipio asper.
Centum similique consequatur eos. Vitae bestia qui enim. Aedificium labore nostrum solio.
Facilis ubi calculus dolorum. Et aer usus aut quod vulgo adnuo nesciunt. Thalassinus cumque voluptatem culpa.
Brain Considine , Direct Assurance Executive
Beer, Weissnat and Boyle, "Sharable incremental synergy"
--
Generated by https://github.com/inbucket/fauxmailer
--enmime-389602d4-f07c-413e-a30c-2b48e73db32f
Content-Type: text/html; charset=utf-8
Aut sequi illo qui vacuus. Sint bellicus blanditiis. Laboriosam congregatio ab laborum ars.
Degero vigilo contra varietas qui occaecati debeo. Tempora animi appello ad est. Et ipsum desipio asper.
Centum similique consequatur eos. Vitae bestia qui enim. Aedificium labore nostrum solio.
Facilis ubi calculus dolorum. Et aer usus aut quod vulgo adnuo nesciunt. Thalassinus cumque voluptatem culpa.
Stewart Kilback <jakob@powlowskihowell.net>, Senior Marketing Architect
Beer, Weissnat and Boyle, Team-oriented discrete initiative
Generated by https://github.com/inbucket/fauxmailer
--enmime-389602d4-f07c-413e-a30c-2b48e73db32f--
## Docker
Docker Hub automated build available at
[inbucket/fauxmailer](https://hub.docker.com/r/inbucket/fauxmailer/)
- `inbucket/fauxmailer:stable` tracks branch `master`
- `inbucket/fauxmailer:latest` tracks branch `develop`
## Building from Source
You will need a functioning [Go installation][Google Go] for this to work.
Grab the fauxmailer source code and compile the executable:
go get -v github.com/inbucket/fauxmailer
## About
fauxmailer is written in [Google Go]
fauxmailer is open source software released under the MIT License. The latest
version can be found at https://github.com/inbucket/fauxmailer
[Google Go]: http://golang.org/
[Inbucket]: http://www.inbucket.org/