Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hi Everyone,
I know that we can send emails using custom Python code in a scenario step.
https://doc.dataiku.com/dss/latest/scenarios/custom_scenarios.html#examples
My question is , is there a way that i can define custom emails to be sent in a Plugin using an existing SMTP Channel?
If anyone has done something similar please let me know.
Hi Nishant,
Your question already holds most of the answer 🙂 For your plugin to send a custom email, you can actually have it run a Scenario using the public API.
In that Scenario, you can set up your Reporter accordingly, pick a given SMTP channel and format your email reporter the way you want. If the goal is only to send an email and not run any other task, you can keep the list of scenario steps empty.
The example you quoted leverages custom Scenarios but you can very well create your "email sender scenario" visually.
Hope this helps!
Best,
Harizo
Hi Nishant,
Your question already holds most of the answer 🙂 For your plugin to send a custom email, you can actually have it run a Scenario using the public API.
In that Scenario, you can set up your Reporter accordingly, pick a given SMTP channel and format your email reporter the way you want. If the goal is only to send an email and not run any other task, you can keep the list of scenario steps empty.
The example you quoted leverages custom Scenarios but you can very well create your "email sender scenario" visually.
Hope this helps!
Best,
Harizo
Thanks for the reply Harizo.
So my plugin should have the ability to create and then run a scenario.
I need to see if that works.
Will keep you posted .
This looks likes something that can help as well.
https://community.dataiku.com/t5/Using-Dataiku/Email-Notification/m-p/14680