Giter VIP home page Giter VIP logo

bdaymail's Introduction

Happy Birthday Mailer

Small CLI utility to send birthday emails to a list of recipients. Written in Go.

It uses the Imgflip api to generate funny memes by randomly selecting a template from a list of IDs.

It is built to run via a daily cron job to send out birthday emails automatically to all recipients in a given JSON file.

First Run

On first run, the program will create a config.toml file in the same directory as the executable.

title = "Happy Birthday %s ๐ŸŽ‰๐ŸŽ‚๐ŸŽˆ๐ŸŽ๐ŸŽŠ๐Ÿฅณ" # Email subject

[smtp]
host = "smtp.example.com"    # SMTP server    
port = 587                   # SMTP port
user = "[email protected]"    # SMTP username
pass = "CHANGE_ME"           # SMTP password

[imgflip]
text = "Happy Birthday!"     # Text to display on the meme
user = "example"             # Imgflip username
pass = "CHANGE_ME"           # Imgflip password
ids = [                      # Meme template IDs
    11797874,
    31643391
]

Input

This is an example of the input fellows.json file.

{
  "1": {
    "Forename": "John",
    "Surname": "Doe",
    "Birthdate": "01.06.2000",
    "Email": "[email protected]"
  },
  "2": {
    "Forename": "Mary",
    "Surname": "Jane",
    "Birthdate": "31.05.2000",
    "Email": "[email protected]"
  }
}

Usage

bdaymail fellows.json

Build

make

Cross-compile

make cross

License

This project is licensed under the MIT License - see the LICENSE file for details.


Copyright ยฉ 2024 Typomedia Foundation. All rights reserved.

bdaymail's People

Contributors

typomedia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.