Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 565 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 565 Bytes

Sendgrid Connector

We have make a library to use sendgrid emails with dynamic templates

Cloning

git clone https://github.com/ambitus-it/sendgrid-connector

Usage

First: Copy your APIKEY to file configs.
Second: Change your Template Id and Dynamic Params
Third: Send a Post with Headers (Content-type application/json)
Four: Send a json with this format:

{
	"to": "emailToSend",
	"from": "emailFrom",
	"subject": "Subject",
	"text": "Text",
	"html": "text/html",
	"templateId": "TemplateID",
	"params": "{
	    foo: bar	
	}"
}

Thanks.