grafana/docs/sources/setup-grafana/configure-grafana
owensmallwood d5b9602a79
Config: Can add static headers to email messages (#79365)
* Can add allowed custom headers to an email Message. WIP.

* adds slug as a custom email header to all outgoing emails

* Headers are static - declared as key/value pairs in config. All static headers get added to emails.

* updates comment

* adds tests for parsing smtp static headers

* updates test to assert static headers are included when building email

* updates test to use multiple static headers

* updates test names

* fixes linting issue with error

* ignore gocyclo for loading config

* updates email headers in tests to be formatted properly

* add static headers first

* updates tests to assert that regular headers like From cant be overwritten

* ensures only the header is in a valid format for smtp and not the value

* updates comment and error message wording

* adds to docs and ini sample files

* updates smtp.static_headers docs examples formatting

* removes lines commented with semi colons

* prettier:write

* renames var
2023-12-14 12:59:43 -06:00
..
configure-custom-branding Docs: copy edit (#76652) 2023-10-26 10:50:31 -05:00
configure-tracing Explicitly set all front matter labels in the source files (#71548) 2023-07-18 09:10:12 +01:00
enterprise-configuration Doc: Add docs for direct mapping of None role for SAML (#76551) 2023-10-13 16:01:55 +01:00
feature-toggles Cloudwatch: Update cloudwatchNewRegionsHandler to General Availability. (#79348) 2023-12-14 08:38:12 -05:00
proxy Plugins: Add option to disable TLS in the socks proxy (#79246) 2023-12-14 12:16:32 -03:00
settings-updates-at-runtime Explicitly set all front matter labels in the source files (#71548) 2023-07-18 09:10:12 +01:00
_index.md Config: Can add static headers to email messages (#79365) 2023-12-14 12:59:43 -06:00