Emails using Plugin and Existing Channel

Options
NN
NN Neuron, Registered, Neuron 2022, Neuron 2023 Posts: 145 Neuron

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.

Tagged:

Best Answer

  • HarizoR
    HarizoR Dataiker, Alpha Tester, Registered Posts: 138 Dataiker
    Answer ✓
    Options

    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

Answers

Setup Info
    Tags
      Help me…