Flow Mailjet component
The component sends email using Mailjet and is designed to work with Flow SDK
To get started, install the package in your NodeJS project
npm i flow-mailjet-component --save
Use the component as below
// require the componentconst Component = ; // create instance of the componentconst component = ;
Provide mailjet credentials, public and private api keys
componentdata = 'Your_Public_Mailjet_Key';componentdata = 'Your_Private_Mailjet_Key';
Provide email fields
// provide from and to address of the emailcomponentdata = 'fro@domain';componentdata = 'to@domain'; // provide the subject and body for the emailcomponentdata = 'Checking your availability';componentdata = 'Hello, Merrari.';
Listen in for port emit events
component; component; component;
Execute the component
// add the component to a graph before executing itconst Graph = Graph;"graph-1"; component;
Conclusion
If you are having trouble sending emails, check that you are using the correct Mailjet API keys and the right sender address.