GitHub user dosubot[bot] added a comment to the discussion: How to add the date 
to the email subject line

<!-- Answer -->
The DATE_FORMAT_IN_EMAIL_SUBJECT feature is available in Superset 4.1.2, but 
it's disabled by default. To use date formatting in your email subject, set 
DATE_FORMAT_IN_EMAIL_SUBJECT = True in your superset_config.py. Then, in your 
alert/report subject, use strftime-style codes like Report for 
%Y-%m-%d—Superset will replace these with the current UTC date when sending the 
email. If it’s not working, double-check that the feature flag is enabled and 
that your config changes are picked up by the running Superset instance. You 
can find the relevant implementation and more details in the code and 
documentation 
[here](https://github.com/apache/superset/blob/7b6885a020af6c55fd6661ca766ebc18399c9496/superset/reports/notifications/email.py)
 and 
[here](https://github.com/apache/superset/blob/7b6885a020af6c55fd6661ca766ebc18399c9496/docs/docs/configuration/alerts-reports.mdx).


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/2f8f03db-f8a8-48a0-bad6-8ecfac973187?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/2f8f03db-f8a8-48a0-bad6-8ecfac973187?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/2f8f03db-f8a8-48a0-bad6-8ecfac973187?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/2f8f03db-f8a8-48a0-bad6-8ecfac973187?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/2f8f03db-f8a8-48a0-bad6-8ecfac973187?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/2f8f03db-f8a8-48a0-bad6-8ecfac973187?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/2f8f03db-f8a8-48a0-bad6-8ecfac973187?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Sh
 are on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/33777)

GitHub link: 
https://github.com/apache/superset/discussions/33777#discussioncomment-13478236

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to