Splunk Dev

How do I run a custom email from Splunk shell?

t5as
New Member

Hello,

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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...