• Stars
    star
    776
  • Rank 56,260 (Top 2 %)
  • Language
    Go
  • Created about 10 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CLI tool for batch-sending email via any SMTP server.

Postman

Postman Icon

Postman is a CLI utility for batch-sending email through any SMTP server (so you can use Postman with your personal Gmail, Amazon SES, Sendgrid, or anything else you'd like).

Features

  • Fast, templated, bulk emails
  • Reads template attributes from CSV
  • Works with any SMTP server
Why this over cat | sed | sendmail < bcc distro_list?
  • Supports both text and HTML parts in emails
  • All of the power of templates in Go (conditionals, etc)
  • Some SMTP providers will complain if there are too many emails in BCC (generally >1000)
  • Sends emails concurrently

Installation

$ go get github.com/zachlatta/postman

Usage

$ postman [flags]

Example

$ postman -html template.html -text template.txt -csv recipients.csv \
    -sender "Zaphod Beeblebrox <[email protected]>" \
    -subject "Hello, World!" -server smtp.beeblebrox.com -port 587 \
    -user zaphod -password Betelgeuse123

template.html:

<h1>Hello, {{.Name}}! You are a {{.Type}}</h1>

template.txt:

Hello, {{.Name}}! You are a {{.Type}}.

recipients.csv:

Email,Name,Type
[email protected],Arthur Dent,Human
[email protected],Ford Prefect,Alien
[email protected],Martin,Robot
[email protected],Trillian,Human

Please check out (and contribute to) the usage page on the wiki for more details.

License

tl;dr

The MIT License (MIT)

Copyright (c) 2014-2023 Zach Latta

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

sshtron

$ ssh sshtron.zachlatta.com
Go
2,055
star
2

pyre

tinder cli built at stupid hackathon san francisco 2015
Go
233
star
3

bitroad

Sell anything online, safely and anonymously.
Ruby
119
star
4

fastprint

Email a file to [email protected] to print it
JavaScript
97
star
5

geodude

A tiny command-line utility for geocoding addresses.
Go
77
star
6

openai-whisper-speaker-identification

Python notebook to run OpenAI's Whisper model with speaker identification
Jupyter Notebook
74
star
7

gitignorer

Easily create .gitignore files for your projects.
Go
55
star
8

nixos-configs

@zachlatta's .dotfiles / NixOS configs
Nix
54
star
9

dtz.js

text adventure all the things
CSS
36
star
10

right-pad

Make math utility functions great again
JavaScript
26
star
11

try

try repos you find online
Go
25
star
12

eden

virtualize osx on kvm
JavaScript
24
star
13

ponzies

Startup sticker ponzi scheme
HTML
17
star
14

dungeon

`@dungeon` on the Hack Club Slack
Go
17
star
15

zachlatta.com

Personal website.
JavaScript
15
star
16

mullog

My personal Gollum deployment
Ruby
14
star
17

school

School. Open sourced.
TeX
13
star
18

tnotify

Easily send notifications from the command-line.
Ruby
12
star
19

cs990

Homework assignments for CS990 at West LA College.
Java
12
star
20

parcel

Parcel is a JMAP server implementation in Go.
Go
12
star
21

go-localbitcoins

Go wrapper for LocalBitcoins API.
Go
11
star
22

envoy

Barebones SMS client for Slack
Go
10
star
23

hackwatch

Directory of hackathons.
CSS
10
star
24

reading

My New Year's resolution is to read a book every week of 2016. This repository is where I'll store my list of books and thoughts.
10
star
25

soundscape

Attempt to make a soundscape designer in the web
TypeScript
9
star
26

codeday-boulder-food

CodeDay Boulder Dinner Orders
JavaScript
9
star
27

gomoney

Easily handle money in Go.
Go
9
star
28

tinder

Go package for interacting with the Tinder API.
Go
8
star
29

suck

I eat c̶h̶i̶l̶d̶r̶e̶n̶ websites.
Go
8
star
30

buccaneer

One-stop seedbox with Docker
Shell
8
star
31

roomzilla-api

Rudimentary scraping-based JSON API for Roomzilla accounts
Python
8
star
32

pin

Go bindings for the Pinboard API
Go
8
star
33

2-dollar-dinosaurs

JavaScript
8
star
34

amelia

Amelia send a text message to your parents every time you change location.
Go
8
star
35

go-mailpin

Open source clone of Mailpin in Go on App Engine
Go
8
star
36

fintegration

Access Fin through /fin on Slack
Go
7
star
37

generals.ai

JavaScript
7
star
38

evelyn

Open-source implementation of Spritz on the Pebble.
C
7
star
39

thiel_fellowship

Thiel Fellowship applications.
7
star
40

easymeme

Meme maker created in aftermath of the Reddit-wide ban of Quickmeme.
Ruby
7
star
41

captive

Self-hosted version of captive.apple.com
Go
6
star
42

docker-minecraft

Dockerfile for Minecraft image.
Shell
6
star
43

dns

Declarative DNS for personal domains
Dhall
6
star
44

act-math-practice

JavaScript
6
star
45

mr-googly

Mr. Googly is a Slack bot that loves googly eyes
JavaScript
5
star
46

rust-by-example

Working repo for Rust By Example
Rust
5
star
47

sloth-simulator

Haxe
5
star
48

college-essay-generator

Haskell
5
star
49

sandprops

Sandcastle Investment Properties website.
Ruby
5
star
50

hammer

Hammer finds short usernames on websites. Inspired by Alex Vallorosi's Twitter Checker.
Go
5
star
51

goauth2-localbitcoins

A fork of goauth2 that plays nice with LocalBitcoins.
Go
5
star
52

docker-minecraft-pocketmine

Docker image for a Minecraft Pocket Edition server.
Shell
4
star
53

rust-cli

Working directory while going through the Command line apps in Rust book
Rust
4
star
54

angelhack-frontend

JavaScript
4
star
55

docker-minecraft-ftb-unleashed

Docker image for the Unleashed Minecraft modpack.
4
star
56

calhacks

Go
4
star
57

angelhack

AngelHack LA Spring 2014
Go
4
star
58

jedi-outcast

Source code for Jedi Outcast by Raven Software.
C++
4
star
59

cockpit

Personal dashboard, ready for takeoff.
JavaScript
4
star
60

pwned

Ludum Dare 27 entry. Based on http://xkcd.com/91/
Shell
4
star
61

snapshibe

Snapshibe lets you send anonymous wows to your fellow shibes. Shibe on!
CSS
4
star
62

docker-starbound

Simple Dockerfile for dedicated Starbound servers.
Shell
4
star
63

chase-account-summary

Get daily emails with account summaries from your Chase account.
4
star
64

zerf

IRC bot for personal chat with friends
CoffeeScript
4
star
65

txt

txt is a command-line utility for sending lots of text messages with lots of phone numbers
Go
4
star
66

addlicense

Easily add licenses to your projects.
Ruby
4
star
67

boolr

Finally, a web-scale boolean-switching service.
4
star
68

baas

Bogosort as a Service
Ruby
4
star
69

photoflow

CLI for managing my photography workflow
Ruby
4
star
70

freewrite-sync

Shell
3
star
71

yegg

Yegg is a proof-of-concept password retriever for the ESUSD network.
Go
3
star
72

chatgpt-real-world

An experiment to give ChatGPT the ability to do things outside its sandbox
Python
3
star
73

powerschool

powerschool gem
Ruby
3
star
74

convox-aur

PKGBUILD for the Convox package in the AUR
Shell
3
star
75

hpu

the human processing unit
JavaScript
3
star
76

deno-playground

JavaScript
3
star
77

bookmarks

Bookmarks for various things.
3
star
78

lifx-playground

playin' around with my light bulbs. the future is crazy.
3
star
79

herald

JavaScript
3
star
80

gocoinbase

Go wrapper for the Coinbase API
Go
3
star
81

pet-tattoos

Website and presentation for English 9 Honors propaganda project.
JavaScript
3
star
82

anonblog

Source code for an anonymous blog based on the blog provided by the Rails Getting Started guide.
Ruby
3
star
83

pebble-pong

Pong on your Pebble.
C
3
star
84

cs902

Assignments from CS902 at West LA College.
Visual Basic
3
star
85

answers

Programatically access Answers.com for fun and profit.
3
star
86

project-euler

Solutions to Project Euler problems.
Go
3
star
87

huckleberry

Barebones command-line client for Fin (https://getfin.com)
Shell
3
star
88

textbundler

(wip) go library / cli tool for generating textbundles from markdown files
Go
3
star
89

go-tomtom

Go interface to TomTom's API. Incomplete, but feel free to contribute.
Go
3
star
90

rust

Haskell
3
star
91

tw-1

TW-1 - Twilio music sequencer
Python
3
star
92

news

Command-line HN client
Go
3
star
93

pico-8-playground

Personal playground for the PICO-8 fantasy console
3
star
94

playing-with-tinder

fun and games with the tinder api
Ruby
3
star
95

snaplive

Snapchat billboard workshop given to the ESHS AP CS classes.
JavaScript
3
star
96

jedi-academy

Source code for Jedi Academy by Raven Software.
C++
3
star
97

eventprint

Eventprint is a check-in solution for hackathons.
Go
3
star
98

bark

Twitter clone on Rails.
Ruby
3
star
99

antapex

An attempt to automate the Apex learning system. For educational purposes only.
3
star
100

programception

A program that writes a program that writes a program that writes a program...
3
star