##// END OF EJS Templates
docs: document email integration
dan -
r641:fe7c372b default
parent child
Show More
@@ -0,0 +1,23
1 .. _integrations-email:
2
3 Email integration
4 =================
5
6 The email integration allows you to send the summary of repo pushes to a
7 list of email recipients in the format:
8
9 An example::
10
11 User: johndoe
12 Branches: default
13 Repository: http://rhodecode.company.com/repo
14 Commit: 8eab60a44a612e331edfcd59b8d96b2f6a935cd9
15 URL: http://rhodecode.company.com/repo/changeset/8eab60a44a612e331edfcd59b8d96b2f6a935cd9
16 Author: John Doe
17 Date: 2016-03-01 11:20:44
18 Commit Message:
19
20 fixed bug with thing
21
22
23 To create one, create a ``email`` integration in `creating-integrations`.
@@ -17,6 +17,7 Type/Name |RC| Edi
17 :ref:`integrations-slack` |RCCEshort| https://slack.com/
17 :ref:`integrations-slack` |RCCEshort| https://slack.com/
18 :ref:`integrations-hipchat` |RCCEshort| https://www.hipchat.com/
18 :ref:`integrations-hipchat` |RCCEshort| https://www.hipchat.com/
19 :ref:`integrations-webhook` |RCCEshort| POST events as `json` to a custom url
19 :ref:`integrations-webhook` |RCCEshort| POST events as `json` to a custom url
20 :ref:`integrations-email` |RCEEshort| Send repo push commits by email
20 :ref:`integrations-redmine` |RCEEshort| Close/Resolve/Reference redmine issues
21 :ref:`integrations-redmine` |RCEEshort| Close/Resolve/Reference redmine issues
21 :ref:`integrations-jira` |RCEEshort| Close/Resolve/Reference JIRA issues
22 :ref:`integrations-jira` |RCEEshort| Close/Resolve/Reference JIRA issues
22 ============================ ============ =====================================
23 ============================ ============ =====================================
@@ -71,6 +71,7 def send_email(recipients, subject, body
71 log = get_logger(send_email)
71 log = get_logger(send_email)
72
72
73 email_config = email_config or rhodecode.CONFIG
73 email_config = email_config or rhodecode.CONFIG
74 print email_config
74 subject = "%s %s" % (email_config.get('email_prefix', ''), subject)
75 subject = "%s %s" % (email_config.get('email_prefix', ''), subject)
75 if not recipients:
76 if not recipients:
76 # if recipients are not defined we send to email_config + all admins
77 # if recipients are not defined we send to email_config + all admins
General Comments 0
You need to be logged in to leave comments. Login now