Sending Emails from SmartFlows via Mailjet

Description

To send email from SmartFlows using Mailjet, you need the following:

How to

Mailjet Credentials

  1. Retrieve your Mailjet API and Secret Keys. They will be required for authentication purposes.

Update your SmartFlow

1. Add an External Web Call action to your flow.

 

2. Configure the action as follows:

 

USERNAME: Your Mailjet Public API Key

PASSWORD: Your Mailjet Secret Key

METHOD: POST

URL OF SERVICE: https://api.mailjet.com/v3.1/send

CONTENT-TYPE: application/json

{
     "Messages":[
               {
                       "From": {
                               "Email": "me@mydomain.com",
                               "Name": "Mailjet Pilot"
                       },
                       "To": [
                               {
                                       "Email": "recipient@domain.com",
                                       "Name": "recipient name"
                               }
                       ],

                      "Subject": "Your Subject",
                      "TextPart": "Your Message”
                      "HTMLPart": Your Message In HTML"
               }
       ]
}

3. Save and Deploy your flow

 

You can now activate your flow and an email should be generated.