Author Topic: Attaching a server-side file with a link...?  (Read 3489 times)

Offline justicej

  • Newbie
  • *
  • Posts: 7
Attaching a server-side file with a link...?
« 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.
-
« Last Edit: September 20, 2016, 12:17:42 AM by justicej »

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Attaching a server-side file with a link...?
« Reply #1 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

Offline justicej

  • Newbie
  • *
  • Posts: 7
Re: Attaching a server-side file with a link...?
« Reply #2 on: September 21, 2016, 03:47:18 PM »
@SKaero - thank you!  This should do it.