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
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...