Emails using Plugin and Existing Channel

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.

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.


Best Answer

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

    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!




Setup Info
      Help me…