summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--acp-storage-report.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/acp-storage-report.py b/acp-storage-report.py
index 51d6faa..8b952d7 100644
--- a/acp-storage-report.py
+++ b/acp-storage-report.py
@@ -105,7 +105,7 @@ def send_email(customer, subject, body, report_name, report, config):
msg.set_content(body)
msg.make_mixed()
- msg.add_attachment(report, filename=report_name)
+ msg.add_attachment(report, filename=report_name.replace(' ', '_'))
with smtplib.SMTP(config[customer]['server'], config[customer]['port']) as server:
server.send_message(msg)