Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

email to post into a chat room

Open IQ2022 opened this issue 10 years ago • 11 comments

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) ??

IQ2022 avatar Apr 27 '16 16:04 IQ2022

+1 , we are thinking of this feature too

jerrygzy avatar May 04 '16 07:05 jerrygzy

👍 We need this too!

stanhu avatar May 13 '16 19:05 stanhu

+1

rchikballapur avatar May 28 '16 09:05 rchikballapur

+1

bjoseph1 avatar Jun 08 '16 22:06 bjoseph1

+1

bradnagle avatar Jul 13 '16 12:07 bradnagle

+1 Really nice feature!

soenkef avatar Jul 26 '16 18:07 soenkef

+1

DirkJanknecht avatar May 04 '17 09:05 DirkJanknecht

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.

JSzaszvari avatar May 04 '17 09:05 JSzaszvari

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??

pkgodara avatar Aug 02 '17 09:08 pkgodara

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

docsncode avatar Mar 13 '18 10:03 docsncode

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
       }
    };
  }
}

Aldekein avatar Nov 06 '19 10:11 Aldekein