Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: justicej on September 19, 2016, 01:54:30 PM

Title: Attaching a server-side file with a link...?
Post by: justicej on September 19, 2016, 01:54:30 PM
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.
-
Title: Re: Attaching a server-side file with a link...?
Post by: SKaero on September 21, 2016, 01:10:06 AM
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
Title: Re: Attaching a server-side file with a link...?
Post by: justicej on September 21, 2016, 03:47:18 PM
@SKaero - thank you!  This should do it.