A Mendix wrapper for using the SendGrid API
Follow the directions below to start sending emails.
Sign up with SendGrid and configure your authorized sender in the SendGrid portal.
Make sure to create an API key in SendGrid. Set the API Key constant in the Mendix Sendgrid connector module.
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.
Follow the directions below to track email status.
Make sure you have enabled the webhook function in SendGrid.
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).
Copy and move the SendGridService
Published REST Service to one of the modules in your project or create a new module.
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.