summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-10-30 23:55:43 +1100
committerGitHub <noreply@github.com>2018-10-30 23:55:43 +1100
commit0dce9e1379ea867c9a00c8e6cf1d42badb52601d (patch)
tree941dcf4454a602715d8c2d6728242c8f677a7fce /synapse/server.py
parentMerge pull request #4109 from matrix-org/erikj/repl_devices (diff)
downloadsynapse-0dce9e1379ea867c9a00c8e6cf1d42badb52601d.tar.xz
Write some tests for the email pusher (#4095)
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py
index cf6b872cbd..9985687b95 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -23,6 +23,7 @@ import abc
 import logging
 
 from twisted.enterprise import adbapi
+from twisted.mail.smtp import sendmail
 from twisted.web.client import BrowserLikePolicyForHTTPS
 
 from synapse.api.auth import Auth
@@ -174,6 +175,7 @@ class HomeServer(object):
         'message_handler',
         'pagination_handler',
         'room_context_handler',
+        'sendmail',
     ]
 
     # This is overridden in derived application classes
@@ -269,6 +271,9 @@ class HomeServer(object):
     def build_room_creation_handler(self):
         return RoomCreationHandler(self)
 
+    def build_sendmail(self):
+        return sendmail
+
     def build_state_handler(self):
         return StateHandler(self)