al-maisan / gmt

Go mailing tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go mailing tool (gmt)

What is it?

gmt is a simple utility that allows the automated sending of emails using a configuration file and a template for the email body. It was written in Go and used mainly on linux systems like Arch Linux, Fedora and Ubuntu.

Using gmt

The easiest way to use the tool is to generate a sample configuration (-sample-config) and a template file (-sample-template) and take it from there.

$ go build
$ ./gmt -sample-config > /tmp/sc.ini
$ ./gmt -sample-template > /tmp/st.eml
$ ./gmt -dry-run -config-path /tmp/sc.ini  -template-path /tmp/st.eml
--
[gnu-mail -a Cc: bl@kf.io, info@ex.org -a From: "Frodo Baggins" <rts@example.com>]
To: jd@example.com
Subject: Hello John!
FN / LN / EA = first name / last name / email address

Hello John // Doe Jr., how are things going at EFF?
this is your email: jd@example.com :)

--
[gnu-mail -a From: "Frodo Baggins" <rts@example.com>]
To: mm@gmail.com
Subject: Hello Mickey!
FN / LN / EA = first name / last name / email address

Hello Mickey // Mouse, how are things going at Disney?
this is your email: mm@gmail.com :)

--
[gnu-mail -a Cc: inc@gg.org -a From: "Frodo Baggins" <rts@example.com>]
To: daisy@example.com
Subject: Hello Daisy!
FN / LN / EA = first name / last name / email address

Hello Daisy // Lila, how are things going at NASA?
this is your email: daisy@example.com :)

Last but not least use -h to see all the options:

$ ./gmt -h

gmt sends emails in bulk based on a template and a config file

  -config-path string
        path to the config file
  -dry-run
        show what would be done but execute no action
  -sample-config
        output sample configuration to stdout
  -sample-template
        output sample template to stdout
  -template-path string
        path to the template file

About

Go mailing tool

License:GNU General Public License v3.0


Languages

Language:Go 100.0%