def send_email(status,message):
yag.send(to=TO_EMAIL,subject="Test Subject: {}".format(status),contents=message)
logging.info("Mail Sent!")
How do I add the current date DDMM format just before the subject line like: 0308 Test Subject ? Yagmail Package.
Thanks in advance.
You can do it like this