GithubHelp home page GithubHelp logo

roelandsalij / sendgrid Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 15.82 MB

Send emails and receive webhook events about the status of sent emails.

Java 1.33% HTML 2.91% JavaScript 23.00% SCSS 72.76%

sendgrid's Introduction

SendGridConnector

A Mendix wrapper for using the SendGrid API

How to Send an Email

Follow the directions below to start sending emails.

1. Signup with SendGrid

Sign up with SendGrid and configure your authorized sender in the SendGrid portal.

2. Set the API Key

Make sure to create an API key in SendGrid. Set the API Key constant in the Mendix Sendgrid connector module.

3. Create and send an email object

Use the micrflows located in the _Use_me folder to construct an email. Make sure to specify your authorized sender in the from address.

  • CreateMail to create a mail object of which you can change the attributes.
  • SendMail to request SendGrid to send an email.

Look at one of the example microflows how to set up an email.

How to receive email events

Follow the directions below to track email status.

1. Configure your SendGrid account

Make sure you have enabled the webhook function in SendGrid.

2. Include the AfterStartup microflows

Copy and move the AfterStartup and EventHandlerExample to one of the modules in your project or create a new module. Edit the AfterStartup and configure the microflow that needs to process incoming events. This custom microflow requires an input parameter (Object: Event).

2. Include the SendGrid Published REST Service

Copy and move the SendGridService Published REST Service to one of the modules in your project or create a new module.

3. (Optional) Enable receiving signed webhook events

To make sure SendGrid is the sender of a request you can enable verification of the signature.

Set the SignatureValidationEnabled constant value to true. Set the VerificationKey value which can be created on the SendGrid website.

sendgrid's People

Contributors

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