Esempio n. 1
0
def build_email(**context):
    with open('/tmp/pokupki.xlsx', mode='r') as file:
        email_op = EmailOperator(
            task_id='send_email',
            to=['*****@*****.**','*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**'],
            subject="Fortemarket покупки",
            html_content='Hello, <br/>',
            files=[file.name],
        )
        email_op.execute(context)
Esempio n. 2
0
def build_email(**context):
    with open('/tmp/BPM_report_new.xlsx', mode='r') as file:
        email_op = EmailOperator(
            task_id='send_email',
            to=[
                '*****@*****.**', '*****@*****.**', '*****@*****.**',
                '*****@*****.**'
            ],
            subject="Daily BPM report",
            html_content='Hello, <br/>',
            files=[file.name],
        )
        email_op.execute(context)
Esempio n. 3
0
def build_email(**context):
    with open('/tmp/vipiski.xlsx', mode='r') as file:
        email_op = EmailOperator(
            task_id='send_email',
            to=[
                '*****@*****.**', '*****@*****.**',
                '*****@*****.**', '*****@*****.**', '*****@*****.**',
                '*****@*****.**', '*****@*****.**'
            ],
            subject="Fortemarket выписка",
            html_content='Hello, <br/>',
            files=[file.name],
        )
        email_op.execute(context)
Esempio n. 4
0
def build_email(**context):
    with open('/tmp/fm_unrecognized.xlsx', mode='r') as file:
        email_op = EmailOperator(
            task_id='send_email',
            to=[
                '*****@*****.**', '*****@*****.**',
                '*****@*****.**', '*****@*****.**', '*****@*****.**',
                '*****@*****.**'
            ],
            subject="fm_unrecognized",
            html_content='Hello, <br/>',
            files=[file.name],
        )
        email_op.execute(context)