Roundcube Community Forum

 

Attaching a server-side file with a link...?

Started by justicej, September 19, 2016, 01:54:30 PM

Previous topic - Next topic

justicej

In a non-roundcube section of our site, we allow users to list pdf's that they can view in their browser.  We want to provide a link for each which effectively says "Send this pdf to someone else" and have that link redirect the user to a compose page with the pdf already loaded as an attachment. Any ideas on how to do this?

Note that the user is already logged into roundcube/dovecot etc.
-

SKaero

It would be pretty easy to build a plugin that would attach the file automatically using the message_compose plugin hook https://github.com/roundcube/roundcubemail/wiki/Plugin-Hooks#message_compose

justicej