def send_email(message: str) -> None:
    "\n    Sends an email to target email with given message.\n    Args:\n        message (str): message you're sending\n    "
    with open('../creds.json', 'r') as f:
        creds = json.loads(f)
    gmail_user = creds['user']
    gmail_pass = creds['pass']
    try:
        server = smtplib.SMTP('smtp.gmail.com', 587)
        server.starttls()
        server.login(gmail_user, gmail_pass)
        server.sendmail(gmail_user, creds['target'], message)
    except:
        print('Email didnt work...')
Sends an email to target email with given message.
Args:
    message (str): message you're sending
def send_email(message: str) -> None:
    "\n    Sends an email to target email with given message.\n    Args:\n        message (str): message you're sending\n    "
    with open('../creds.json', 'r') as f:
        creds = json.loads(f)
    gmail_user = creds['user']
    gmail_pass = creds['pass']
    try:
        server = smtplib.SMTP('smtp.gmail.com', 587)
        server.starttls()
        server.login(gmail_user, gmail_pass)
        server.sendmail(gmail_user, creds['target'], message)
    except:
        print('Email didnt work...')