Splunk Enterprise

Why am I unable to send emails with attachment using python script?

Ruki
Loves-to-Learn

I tried to migrate my python scripts for Splunk to send out emails with attachments from python2 to python3. In python3, when the attachment got Chinese/ Japanese or any other special characters, the email cannot be sent out. This issue didn't happen in python2 script. I think it's because python 3 is strict about not mixing different types of strings, but i don't know how to modify it. Any ideas or tips for this issue?

Labels (1)
Tags (1)
0 Karma
Get Updates on the Splunk Community!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...