npm package: @objectif-lune/node-red-contrib-mailjet
Description: Node-RED node to send email content generated by OL Connect using Mailjet service
Author: Upland Software Inc.
Latest version: 1.0.1

# Node-RED node to send email content generated by OL Connect technology using the Mailjet service

This `mailjet` node sends pre-rendered email content, created by the `email content` node of the [OL Connect package for Node-RED](https://www.npmjs.com/package/@objectif-lune/node-red-contrib-connect), via the Mailjet service for bulk processing. This task uses Mailjet's v3.1 Web API which is faster than sending email over SMTP. 

## Features
- Sends pre-rendered email content, created by the `email content` node of the [OL Connect package for Node-RED](https://www.npmjs.com/package/@objectif-lune/node-red-contrib-connect).
- Utilize MailJet's sandbox mode to validate that the email campaign is correctly formatted. Receive a full list of responses from the MailJet API prior to sending any Emails.
- Personalize the number of batches messages are sent in to accelerate campaign delivery.
- Group emails together under a single campaign name.
- Send messages to a test address.

## Installation
Use the `Manage Palette` option from the `Node-RED`-menu, or run the following command in your Node-RED user directory - typically `~/.node-red`

```
npm install @objectif-lune/node-red-contrib-mailjet
```

Obviously, you must have OL Connect installed on a server that can be reached from the one where Node-RED is installed, otherwise you won't be able to perform any automation tasks.

## Usage
This `mailjet` node should be placed after the `email content` node of the [OL Connect package for Node-RED](https://www.npmjs.com/package/@objectif-lune/node-red-contrib-connect). The node takes its information from the `messages` array in `msg.payload`. This data could be modified and extended using a `function` node (for example to add static attachments).

To be able to send email using the node, you need a MailJet account and an API key created in the [Settings](https://app.mailjet.com/account/apikeys) section of the [Mailjet portal](https://app.mailjet.com/account/apikeys).

Note also that this node requires you to specify the connection to the OL Connect Server.

## Support
OL Connect Automate is supported through the [OL Care program](https://uplandsoftware.com/objectiflune/customer-support-and-resources/). Feel free to visit the [OL Connect Automate forum](https://olforum.uplandsoftware.com/c/olcnrs/38) to post questions, comments and suggestions.

## License
Copyright 2025 Upland Software Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.