Giter Club home page Giter Club logo

digest's Introduction

w00t?

This repository contains both digest as well as scripts for sending emails to community members. SendGrid takes care of unsubscribed users automatically.

In order to send email, you have to perform three magic steps:

1. Build HTML from Markdown

groovy <parameters>  markdown2html.groovy > body.html

Required parameters

-Dtemplate - relative path to markdown template

2. Collect and store recipients in a file

groovy <parameters> collect_recipients.groovy > recipients.txt

Required parameters

-Deventbrite.userKey - User Key for accessing Eventbrite

-Deventbrite.appKey - App Key for accessing Eventbrite

Optional parameters

-Dskip.event - if specified, does not collect members of the given event

3. (Optional) Create monthly event iCalendar

groovy <parameters> calendar.groovy

Required parameters

-Dout - iCalendar output file name

-Dname - Event name

-Dlocation - Event location

-Ddescription - Event description

-DdateTime - DateTime in d/M/yyyy H:m format

Examples

groovy -Dout=latcraftonair.ics \
  -Dname="Latcraft On Air" \
  -Dlocation="https://www.youtube.com/channel/UCvzMZyJZZ3XYQwbvOACVYrQ" \
  -Ddescription="Talk with Java gods" \
  -DdateTime='17/05/2015 10:00' \
  calendar.groovy
groovy -Dout=pub.ics \
  -Dname="Pub" \
  -Dlocation="Beļgu alus" \
  -Ddescription="Pub meet" \
  -DdateTime='17/05/2015 10:00' \
  calendar.groovy                                  

4. Send email to recipients

groovy <parameters> sender.groovy < recipients.txt

Required parameters

-Dsendgrid.user - SendGrid username

-Dsendgrid.password - SendGrid password

-Demail.body - relative path to email body (normally body.html)

-Demail.from - sender email (normally [email protected])

-Demail.subject - email subject

Optional parameters

-Dcalendar - iCalendar (*.ics) file to be sent out as event invitation.

Misc

Access credentials can be obtained here.

digest's People

Contributors

aadamovich avatar karpelcevs avatar leonardinius avatar sizovs avatar

Watchers

 avatar  avatar  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.