RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.28k stars 10.45k forks source link

email to post into a chat room #3056

Closed IQ2022 closed 6 years ago

IQ2022 commented 8 years ago

if someone receive news letter, or alerts via emails in their inbox, is there a way to have those emails sent of forwarded into a dedicated room (keeping their rich text or have their own style) ??

jerrygzy commented 8 years ago

+1 , we are thinking of this feature too

stanhu commented 8 years ago

👍 We need this too!

rchikballapur commented 8 years ago

+1

bjoseph1 commented 8 years ago

+1

bradnagle commented 8 years ago

+1

soenkef commented 8 years ago

+1 Really nice feature!

DirkJanknecht commented 7 years ago

+1

JSzaszvari commented 7 years ago

I don't think the chat core should be watching out for these emails. This is exactly what the existing Zapier integration is meant to provide. (Plus so much more)

Zapier provides this through webhooks which facilitate this king of integration.

You can use something like Zapier which has rocket.chat integration

https://rocket.chat/docs/administrator-guides/integrations/zapier

Official site: https://Zapier.com

It just took me less than 5 mins to accomplish what you want :

img_1485

If you need more than Zapier provides for free and are unwilling to pay, then there is a service which does the same thing but is self hosted Called Huginn - https://github.com/huginn/huginn

Or you could even have a script that runs that checks a mailbox and posts to the incoming web hook.

pkgodara commented 7 years ago

Email text can be used, so it will not have older styles, no html. Is that ok. As far as I understand, some dedicated email to which you can forward emails & can post messages to rooms. Is that what you want??

docsncode commented 6 years ago

Closing as this feature is not on our short term roadmap, we will revisit once other priorities have been addressed.

Aldekein commented 4 years ago

Just to show a way it could be set up:

  1. Set up a Postmark incoming email that will send webhooks.
  2. Set up Rocket.chat incoming webhook with custom script enabled, like this one:
class Script {
  process_incoming_request({ request }) {
    var text = `From: "${request.content.FromName}" <${request.content.From}>\n`
    text += `Subject: ${request.content.Subject}\n`
    text += `\n${request.content.TextBody}`

    if (request.content.Attachments.length > 0) text += `\n\n${request.content.Attachments.length} attachments can be viewed at https://groups.google.com/a/xxxxxxxx.com/forum/#!forum/xxxxxxxx`

    return {
      content: {
        text: text
       }
    };
  }
}