Developing for Splunk Enterprise

How do I run a custom email from Splunk shell?

New Member


I've built a custom email Python script to send as an alert in order to be able to add some CSS to my email.

I ran it using SMTP and it worked well once i entered the Windows CLI on my server and ran it from there.

However i tried to run it through Splunk custom command and experienced failure so i went to the Splunk shell CLI
on my server and tried to run it from there. From there, i got the following error: "SMTPServerDisconnected: Connection unexpectedly closed."

I need your help to figure out why this is happening since i've already been able to send normal emails from my Splunk.

Thanks in advance.

0 Karma
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!