I want to include file name \'main.txt\' in the subject for that I am passing file name from command line. but getting error in doing so
python sample.py ma
With python 3.6+:
msg['Subject'] = f"Auto Hella Restart Report {sys.argv[1]}"