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!

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...