Closed IQ2022 closed 6 years ago
+1 , we are thinking of this feature too
👍 We need this too!
+1
+1
+1
+1 Really nice feature!
+1
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 :
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.
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??
Closing as this feature is not on our short term roadmap, we will revisit once other priorities have been addressed.
Just to show a way it could be set up:
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
}
};
}
}
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) ??