To configure SMTP settings, checkout the SMTP section in the standard configuration. If you do not want to store the SMTP credentials in the config or in the environment variables, you can create a connection called smtp_default of Email type, or choose a custom connection name and set the email_conn_id with its name in the configuration & store SMTP username-password in it. Other SMTP settings like host, port etc always gets picked up from the configuration only. The connection can be of any type (for example ‘HTTP connection’).
However, SMTP Connection does not mention that such limitation.
As a result, even SMTP connection test passes, the connection cannot be used in DAG failture notification. This is quite counter-intuitive, confusing, and misleading for users expecting STMP connection holds all information for all cases.
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
What do you see as an issue?
Email Configuration mentions
However, SMTP Connection does not mention that such limitation.
As a result, even SMTP connection test passes, the connection cannot be used in DAG failture notification. This is quite counter-intuitive, confusing, and misleading for users expecting STMP connection holds all information for all cases.
See https://github.com/apache/airflow/issues/37442 for example.
Solving the problem
Either Airflow notification picks up all other attributes (other than credentials), or SMTP connection doc and UI should mention the limitation.
Anything else
No response
Are you willing to submit PR?
Code of Conduct