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

Commit f724a2a

Browse files
committed
Clarifications for the email configuration settings. (#6423)
* commit 'c48ea9800': Clarifications for the email configuration settings. (#6423)
2 parents d4ac275 + c48ea98 commit f724a2a

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
@@ -1520,8 +1520,23 @@ password_config:
15201520
# smtp_user: "exampleusername"
15211521
# smtp_pass: "examplepassword"
15221522
# require_transport_security: false
1523+
#
1524+
# # notif_from defines the "From" address to use when sending emails.
1525+
# # It must be set if email sending is enabled.
1526+
# #
1527+
# # The placeholder '%(app)s' will be replaced by the application name,
1528+
# # which is normally 'app_name' (below), but may be overridden by the
1529+
# # Matrix client application.
1530+
# #
1531+
# # Note that the placeholder must be written '%(app)s', including the
1532+
# # trailing 's'.
1533+
# #
15231534
# notif_from: "Your Friendly %(app)s homeserver <[email protected]>"
1524-
# app_name: Matrix
1535+
#
1536+
# # app_name defines the default value for '%(app)s' in notif_from. It
1537+
# # defaults to 'Matrix'.
1538+
# #
1539+
# #app_name: my_branded_matrix_server
15251540
#
15261541
# # Enable email notifications by default
15271542
# #

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)