Emailing from custom AddOn?

Hello, I am creating an AddOn that needs to send an email when a certain condition is met. I tried several mail methods but can’t seem to “expose” them in the addOn class.

Could anyone please provide a sample code block for sending an email using the default NT profiles from an AddOn? (Not I do not want to specify SMTP, it needs to work with NT’s profiles.)

Thank you SO much and kind regards!

Try this:

https://forum.ninjatrader.com/forum/ninjatrader-8/platform-technical-support-aa/99714-email-alert

Thank you kindly for the reply, but I am looking to do this from the AddOn class, not Indicator or Strategies. Do you have an example of that?