[ 
https://issues.apache.org/jira/browse/AIRFLOW-2322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jayaradha updated AIRFLOW-2322:
-------------------------------
    Description: 
success_email = EmailOperator(
 task_id='SendEmail',
 to='t...@test.com',
 subject = 'Email subject  \{{ ds }}'
 html_content='<p>Text Content. </p> <br> Thanks, <br> Admin',
 files=['/home/ec2-user/data/\\\{{ ds }}' + filename],
 dag=dag
 )

using \{{ ds }}  inside attachment list is not working - 
/home/ec2-user/data/\{{ ds }} 

 

File is the list of files to attach with email. It is not accepting templates

 

 

  was:
success_email = EmailOperator(
 task_id='SendEmail',
 to='t...@test.com',
 subject = 'Email subject  \{{ ds }}'
 html_content='<p>Text Content. </p> <br> Thanks, <br> Admin',
 files=['/home/ec2-user/data/\\{{ ds }}' + filename],
 dag=dag
 )

using \{{ ds }}  inside attachment list is not working - 
/home/ec2-user/data/\{{ ds }} 

 

 

        Summary: Email Operator   Templates not working for fiels   (was: Email 
Operator attachment )

> Email Operator   Templates not working for fiels 
> -------------------------------------------------
>
>                 Key: AIRFLOW-2322
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2322
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: operators
>            Reporter: Jayaradha
>            Priority: Major
>
> success_email = EmailOperator(
>  task_id='SendEmail',
>  to='t...@test.com',
>  subject = 'Email subject  \{{ ds }}'
>  html_content='<p>Text Content. </p> <br> Thanks, <br> Admin',
>  files=['/home/ec2-user/data/\\\{{ ds }}' + filename],
>  dag=dag
>  )
> using \{{ ds }}  inside attachment list is not working - 
> /home/ec2-user/data/\{{ ds }} 
>  
> File is the list of files to attach with email. It is not accepting templates
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to