Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit c48ea98

Browse files
authored
Clarifications for the email configuration settings. (#6423)
Cf #6422
1 parent 0f87b91 commit c48ea98

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

changelog.d/6423.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarifications for the email configuration settings.

docs/sample_config.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1333,8 +1333,23 @@ password_config:
13331333
# smtp_user: "exampleusername"
13341334
# smtp_pass: "examplepassword"
13351335
# require_transport_security: false
1336+
#
1337+
# # notif_from defines the "From" address to use when sending emails.
1338+
# # It must be set if email sending is enabled.
1339+
# #
1340+
# # The placeholder '%(app)s' will be replaced by the application name,
1341+
# # which is normally 'app_name' (below), but may be overridden by the
1342+
# # Matrix client application.
1343+
# #
1344+
# # Note that the placeholder must be written '%(app)s', including the
1345+
# # trailing 's'.
1346+
# #
13361347
# notif_from: "Your Friendly %(app)s homeserver <[email protected]>"
1337-
# app_name: Matrix
1348+
#
1349+
# # app_name defines the default value for '%(app)s' in notif_from. It
1350+
# # defaults to 'Matrix'.
1351+
# #
1352+
# #app_name: my_branded_matrix_server
13381353
#
13391354
# # Enable email notifications by default
13401355
# #

synapse/config/emailconfig.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,23 @@ def generate_config_section(self, config_dir_path, server_name, **kwargs):
307307
# smtp_user: "exampleusername"
308308
# smtp_pass: "examplepassword"
309309
# require_transport_security: false
310+
#
311+
# # notif_from defines the "From" address to use when sending emails.
312+
# # It must be set if email sending is enabled.
313+
# #
314+
# # The placeholder '%(app)s' will be replaced by the application name,
315+
# # which is normally 'app_name' (below), but may be overridden by the
316+
# # Matrix client application.
317+
# #
318+
# # Note that the placeholder must be written '%(app)s', including the
319+
# # trailing 's'.
320+
# #
310321
# notif_from: "Your Friendly %(app)s homeserver <[email protected]>"
311-
# app_name: Matrix
322+
#
323+
# # app_name defines the default value for '%(app)s' in notif_from. It
324+
# # defaults to 'Matrix'.
325+
# #
326+
# #app_name: my_branded_matrix_server
312327
#
313328
# # Enable email notifications by default
314329
# #

0 commit comments

Comments
 (0)