import smtplib
import os
import logging

HOST = 'smtp.gmail.com'
PORT = 465
USERNAME = 'elastalert.zouth@gmail.com'
PASSWORD = 'ahqyqydyhdakvlwc'


logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)

logger.info('Connect to %s:%d with %s/%s', HOST, PORT, USERNAME, PASSWORD)
smtp_client = smtplib.SMTP_SSL(HOST, PORT)
smtp_client.login(USERNAME, PASSWORD)

def send_mail(mail_to: str, subject: str, message: str):
    body = f'From: {USERNAME}\r\n' + \
        f'To: {mail_to}\r\n' + \
        f'Subject: {subject}\r\n\r\n' + \
        message

    smtp_client.sendmail(USERNAME, mail_to, body)

3d18170986cdd0dab9dac0ad99cff93ccb0d4e5f
<mask token>


def send_mail(mail_to: str, subject: str, message: str):
    body = (f'From: {USERNAME}\r\n' + f'To: {mail_to}\r\n' +
        f'Subject: {subject}\r\n\r\n' + message)
    smtp_client.sendmail(USERNAME, mail_to, body)

<mask token>
logger.setLevel(logging.INFO)
logger.info('Connect to %s:%d with %s/%s', HOST, PORT, USERNAME, PASSWORD)
<mask token>
smtp_client.login(USERNAME, PASSWORD)


def send_mail(mail_to: str, subject: str, message: str):
    body = (f'From: {USERNAME}\r\n' + f'To: {mail_to}\r\n' +
        f'Subject: {subject}\r\n\r\n' + message)
    smtp_client.sendmail(USERNAME, mail_to, body)

<mask token>
HOST = 'smtp.gmail.com'
PORT = 465
USERNAME = 'elastalert.zouth@gmail.com'
PASSWORD = 'ahqyqydyhdakvlwc'
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
logger.info('Connect to %s:%d with %s/%s', HOST, PORT, USERNAME, PASSWORD)
smtp_client = smtplib.SMTP_SSL(HOST, PORT)
smtp_client.login(USERNAME, PASSWORD)


def send_mail(mail_to: str, subject: str, message: str):
    body = (f'From: {USERNAME}\r\n' + f'To: {mail_to}\r\n' +
        f'Subject: {subject}\r\n\r\n' + message)
    smtp_client.sendmail(USERNAME, mail_to, body)

import smtplib
import os
import logging
HOST = 'smtp.gmail.com'
PORT = 465
USERNAME = 'elastalert.zouth@gmail.com'
PASSWORD = 'ahqyqydyhdakvlwc'
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
logger.info('Connect to %s:%d with %s/%s', HOST, PORT, USERNAME, PASSWORD)
smtp_client = smtplib.SMTP_SSL(HOST, PORT)
smtp_client.login(USERNAME, PASSWORD)


def send_mail(mail_to: str, subject: str, message: str):
    body = (f'From: {USERNAME}\r\n' + f'To: {mail_to}\r\n' +
        f'Subject: {subject}\r\n\r\n' + message)
    smtp_client.sendmail(USERNAME, mail_to, body)

import smtplib
import os
import logging

HOST = 'smtp.gmail.com'
PORT = 465
USERNAME = 'elastalert.zouth@gmail.com'
PASSWORD = 'ahqyqydyhdakvlwc'


logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)

logger.info('Connect to %s:%d with %s/%s', HOST, PORT, USERNAME, PASSWORD)
smtp_client = smtplib.SMTP_SSL(HOST, PORT)
smtp_client.login(USERNAME, PASSWORD)

def send_mail(mail_to: str, subject: str, message: str):
    body = f'From: {USERNAME}\r\n' + \
        f'To: {mail_to}\r\n' + \
        f'Subject: {subject}\r\n\r\n' + \
        message

    smtp_client.sendmail(USERNAME, mail_to, body)
