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:
groovy <parameters> markdown2html.groovy > body.html
-Dtemplate
- relative path to markdown template
groovy <parameters> collect_recipients.groovy > recipients.txt
-Deventbrite.userKey
- User Key for accessing Eventbrite
-Deventbrite.appKey
- App Key for accessing Eventbrite
-Dskip.event
- if specified, does not collect members of the given event
groovy <parameters> calendar.groovy
-Dout
- iCalendar output file name
-Dname
- Event name
-Dlocation
- Event location
-Ddescription
- Event description
-DdateTime
- DateTime in d/M/yyyy H:m
format
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
groovy <parameters> sender.groovy < recipients.txt
-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
-Dcalendar
- iCalendar (*.ics
) file to be sent out as event invitation.
Access credentials can be obtained here.