• Stars
    star
    132
  • Rank 274,205 (Top 6 %)
  • Language EJS
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 2 years ago

Reviews

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

Repository Details

Starter workflow for creating electronically signed PDF agreements.

PactMaker

Starter workflow for creating self-signed PDF agreements. If youโ€™re working on becoming GDPR compliant, we wrote a quick guide on how you can get prepared.

Deploy

PactMaker spins up a website with a form that lets your customers self-sign PDF agreements. After each agreement is signed, it sends an email with a copy of the PDF using Postmark. PactMaker is built with node.js, express, and EJS templating.

PactMaker Screenshot

Configuration

Create an environment variable file(.env) in the project root with the following variables:

POSTMARK_SERVER_TOKEN=''
POSTMARK_FROM_ADDRESS=''
INTERNAL_EMAIL_RECIPIENTS=''
INTERNAL_EMAIL_SUBJECT=''
SIGNEE_EMAIL_SUBJECT=''
TITLE=''

POSTMARK_SERVER_TOKEN

Server tokens can be found under the credentials tab on your Postmark server.

POSTMARK_FROM_ADDRESS

The email address you want to send the email from. You must verify your domain or create a valid Sender Signature on Postmark.

INTERNAL_EMAIL_RECIPIENTS

Comma-separated list of email address you want to send the PDF agreement to.

INTERNAL_EMAIL_SUBJECT

The subject line of the email that gets sent to your team. Available variables: <%= company %>, <%= name %>, <%= role %>, and <%= email %>.

SIGNEE_EMAIL_SUBJECT

The subject line of the email that gets sent to the person who just signed the agreement. Available variables: <%= company %>, <%= name %>, <%= role %>, and <%= email %>.

TITLE

The name of your company or app. This will appear on the page header and footer.

Get started

Before you get started, make sure you have an environment variable file(see above) and that Node.js and npm is installed.

  • In terminal, run npm install
  • Run npm start or heroku local to run the project locally
  • By default, npm start uses port 3000 and heroku local uses port 5000.

Email templates

The email content for the signee and internal email can be found under /emails. Templates are rendered using EJS. Available variables: <%= company %>, <%= name %>, <%= role %>, and <%= email %>.

Agreement template

The agreement PDF template can be found at /views/agreement.ejs. PactMaker comes with basic styles for presenting different signatures.

Autogenerated example agreement

Itโ€™s important to let your customers preview the agreement before signing it. PactMaker automatically generates an example agreement at the root URL so that you can link to it. Example values can be found in examples.json.

More Repositories

1

postmark-templates

Rock-solid transactional email templates for applications.
HTML
2,836
star
2

mailmason

A complete toolset to streamline building and updating a set of consistent transactional emails.
Handlebars
912
star
3

postmark-rails

Official integration library for using Rails and ActionMailer with the Postmark HTTP API
Ruby
340
star
4

postmark.js

Official Node.js library for the Postmark API
TypeScript
294
star
5

mustachio

Lightweight, powerful, flavorful, template engine.
C#
198
star
6

postmark-gem

Official Ruby client library for the Postmark HTTP API
Ruby
197
star
7

postmark-php

The official PHP library for Postmark.
PHP
155
star
8

activecampaign-api-php

PHP
113
star
9

postmark-cli

The official CLI tool for Postmark
TypeScript
74
star
10

style-merge

Simple CSS inlining, for email.
C#
68
star
11

swiftmailer-postmark

The Official Swiftmailer Transport for Postmark.
PHP
53
star
12

mailhandler

Simple lightweight mail library which allows you to send and retrieve emails, and get more details about email sending and delivery
Ruby
53
star
13

postmark-dotnet

A .NET library for the Postmark API
C#
47
star
14

smtp-field-manual

A collection of raw STMP server responses from major email service providers and spam filter services.
JavaScript
44
star
15

activecampaign-api-nodejs

Node.js wrapper for the ActiveCampaign API
JavaScript
39
star
16

postmark-java

Official Java client library for the Postmark HTTP API
Java
36
star
17

mailbrush

Node.js library for generating email friendly snippets with syntax highlighting
JavaScript
33
star
18

laravel-postmark-provider

A Postmark adapter for Laravel 5+
PHP
30
star
19

postmark_webhooks

Lightweight quickstart app for receiving and processing webhooks from Postmark
JavaScript
29
star
20

postmark-wordpress

The Official Postmark Wordpress Plugin
PHP
19
star
21

postmark-nodemailer

Using Postmark to send transactional emails through nodemailer
JavaScript
17
star
22

postmark-firebase

Postmark + Firebase + Cloud Functions Tutorial
HTML
15
star
23

craft3-donottrack

Craft 3 plugin for respecting Do Not Track headers sent by browsers.
PHP
13
star
24

module-integration

PHP
8
star
25

camp-css

CSS behind the distinctive style of ActiveCampaign
CSS
7
star
26

example-subscription_form_embed

ActiveCampaign Subscription Form API Script: Embed and customize your forms on any site.
PHP
6
star
27

example-sso_embed

Use SSO to link users to ActiveCampaign (bypassing the login), or embed as an iFrame.
PHP
6
star
28

postmark-coldfusion

ColdFusion library for sending emails through Postmark - http://postmarkapp.com
ColdFusion
5
star
29

app-wordpress

The official ActiveCampaign WordPress plugin
PHP
5
star
30

fakemail

Ruby
3
star
31

example-reseller_account_manage

ActiveCampaign Reseller Account Custom API Script: Add account, template, generate log-in link, and more.
PHP
3
star
32

ac-google-sheets-app-scripts

ActiveCampaign apps scripts to add helper functions to google sheets.
3
star
33

example-rest_hooks

Interact and manage ActiveCampaign webhooks via our REST API.
PHP
3
star
34

fakebounce

bounce generating tool
Ruby
3
star
35

example-add_subscriber_send_instant

Add a subscriber and trigger instant responders to send.
PHP
3
star
36

inbound-demo-rails

Demo showing how to use Postmarkโ€™s inbound email processing in a Rails app.
Ruby
3
star
37

aws-ssh-helper

Generates SSH configuration from EC2 metadata
PHP
3
star
38

example-recent_campaigns_rss

Recent Campaigns formatted as RSS.
PHP
2
star
39

camp-ui

Camp UI is the main source of Sketch files for our ActiveCampaign product design system.
2
star
40

camp-site

Vue
2
star
41

stylelint-config-activecampaign

Stylelint configuration used by ActiveCampaign
JavaScript
2
star
42

qa-configurator

simple configuration tool
Ruby
2
star
43

php56-apache-browsers-with-extensions

Dockerfile
1
star
44

ac-style-guide

Style Guide for ActiveCampaign
CSS
1
star
45

example-view_contact_details

View a contact's details including list subscriptions, custom field data, recent actions, and campaign history
PHP
1
star
46

ember-route-action-helper

JavaScript
1
star
47

vcard

PHP
1
star
48

craft-customerio

Craft CMS plugin for pushing newsletter subscribers to Customer.io
PHP
1
star
49

grunt-postmark

Send emails through Postmark using GruntJS.
HTML
1
star