diff --git a/templates/zerver/integrations/email.html b/templates/zerver/integrations/email.html new file mode 100644 index 0000000000..9b8c35a278 --- /dev/null +++ b/templates/zerver/integrations/email.html @@ -0,0 +1,31 @@ +

You can send emails to Zulip! This is useful:

+ + + +

To send an email to a Zulip stream:

+ +
    +
  1. Visit your {{ subscriptions_html|safe }} and click on the stream row to expand it.
  2. +
  3. Copy the stream email address + (e.g. {{ email_gateway_example }}). If the stream + name contains special characters, we've transformed the name so it is a + safe email recipient. +
  4. +
  5. Send an email (To, CC, and BCC all work) to the stream email + address. The email subject will become the stream topic, and the email + body will become the Zulip message content. +
  6. +
+ +

+ Please note that it may take up to one minute for the message to show up + in Zulip. +

diff --git a/templates/zerver/integrations/index.html b/templates/zerver/integrations/index.html index 3faf5de676..cd56f25bc3 100644 --- a/templates/zerver/integrations/index.html +++ b/templates/zerver/integrations/index.html @@ -112,45 +112,9 @@ {% endif %} {% endfor %} - -{% if email_integration_enabled %} -
- - -

You can send emails to Zulip! This is useful:

- - - -

To send an email to a Zulip stream:

- -
    -
  1. Visit your {{ subscriptions_html|safe }} and click on the stream row to expand it.
  2. -
  3. Copy the stream email address - (e.g. {{ email_gateway_example }}). If the stream - name contains special characters, we've transformed the name so it is a - safe email recipient.
  4. -
  5. Send an email (To, CC, and BCC all work) to the stream email - address. The email subject will become the stream topic, and the email - body will become the Zulip message content.
  6. -
- -

Please note that it may take up to one minute for the message to show up - in Zulip.

- -

- Logos are trademarks of their respective owners. - None of the integrations on this page are created by, - affiliated with, or supported by the companies - represented by the logos. -

-
-{% endif %} + {% if email_integration_enabled %} + {% include 'zerver/integrations/email.html' %} + {% endif %}
diff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.py index d87f414b08..e5a5d9aa0b 100644 --- a/zerver/lib/integrations.py +++ b/zerver/lib/integrations.py @@ -186,7 +186,7 @@ INTEGRATIONS = { 'asana': Integration('asana', 'asana', doc='zerver/integrations/asana.html'), 'capistrano': Integration('capistrano', 'capistrano', doc='zerver/integrations/capistrano.html'), 'codebase': Integration('codebase', 'codebase', doc='zerver/integrations/codebase.html'), - 'email': EmailIntegration('email', 'email'), + 'email': EmailIntegration('email', 'email', doc='zerver/integrations/email.html'), 'git': Integration('git', 'git'), 'google-calendar': Integration('google-calendar', 'google-calendar', display_name='Google Calendar'), 'hubot': Integration('hubot', 'hubot'),