Roundcube Community Forum

 

Set a static recipient for all users

Started by Tannuk, February 03, 2022, 08:27:09 AM

Previous topic - Next topic

Tannuk

Hello,

I want to set a static recipient for all users on the system, so that when they compose an email they do not have the possibility set / change the recipient.
Is there a way to realize that?
I thought I could solve the problem via the template (elastic), but did not came far. I always got the error that no recipient is entered.

I use Roundcube version 1.4.13 (LTS) with the "elastic" skin.

SKaero

You could do that with a plugin that sets the to when the message is sent and some JS to remove the UI that isn't needed.

Tannuk

Sorry for the late reply.
To remove/alter the UI element, I can just edit the elastic html template if I am not mistaken.
However, I searched for a plugin with the functionality to add a recipient to every message, but did not find one. Therefore, I am assuming I have to write a small plugin myself.
I already found the Plugin API description on GitHub, however is there a small plugin that does something similar, like adding a bcc or something like that, which I could use as template?

alec

Can't you just do always_bcc in Postfix? Anyway, check additional_message_headers plugin for a start.

Tannuk

I think you got me wrong, I want to set a recipient. Nevertheless, thanks I will look in to this plugin.