- register Sendgrid Event-Notifications to your /webhook url
docker run --name mailer-mongo -p 27017:27017 -d mongo
docker build -t breakout/mailer .
docker run --name mailer --link mailer-mongo:mongo -d
-e MAILER_SENDGRID_KEY='' \
-e MAILER_AUTH_TOKEN='' \
-e MAILER_TEMPLATE_BUTTON_ID='9caf72ad-992d-4f52-b443-a6cbb909b8b7' \
-e MAILER_TEMPLATE_ID='caaef3c0-7e00-495e-9e91-3681c0f28eb1' \
-p 3003:3003 breakout-mailer
All Request must provide an AUTH-TOKEN
X-AUTH-TOKEN
Auth Token for Accessing API-Functions
Events Notification Webhook to be called by Sendgrid
-
URL
/webhook
-
Method:
POST
Sends a Mail to all Receivers in TO-Field
-
URL
/send
-
Method:
POST
-
URL Params
Required:
tos = [String]
TO Receiverssubject = String
Subject of mailhtml = String
Body as HTMLOptional:
files = [String]
Urls of files as attachmentbccs = [String]
BCC Receiverscampaign_code = String
Code for Campaign
Get a mail with specific ID
-
URL
/get/:id
-
Method:
GET
-
URL Params
Required:
id = String
ID of mail to get
Get all mails for campaign code
-
URL
/get/campaign/:code
-
Method:
GET
-
URL Params
Required:
code = String
Campaign Code of mails to get
Get all mails
-
URL
/get
-
Method:
GET
Get all mails with Error
-
URL
/get/error
-
Method:
GET
Get all Mails from Date to Date
-
URL
/get/:from/:to
-
Method:
GET
-
URL Params
Required:
from = Int
Unixtimestamp from when to get mailsto = Int
Unixtimestamp to when to get mails
Get all mails to specific receiver
-
URL
/get/to/:email
-
Method:
GET
-
URL Params
Required:
email = String
Email of receiver to get mails for
breakout-mailer: Provides Mailing-functionality for the BreakoutBackend Copyright (C) 2015 Philipp Piwowarsky
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.