Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: daj on April 06, 2017, 09:25:59 AM

Title: auto complete some content on New Email?
Post by: daj on April 06, 2017, 09:25:59 AM
Hi all,

Wondering if it is possible to open a Compose New Email window and have it auto populated with some information?

in my head I see my process sending data via POST to a Roundcube form which opens a new email and uses the POST data to complete the To, Subject and some Body text, but allow the user to edit before sending.

I had a browse through the Plugins but couldn't see anything.   

I had a play about and I see I can pass some parameters in the command line.  Example: 

?_task=mail&_action=compose&sendto=me@me.com&subject=test&body=this%20test

It works well, but ideally I'd like to open a new window with the compose, and when the person clicks send the window is closed and they are not in Roundcube but back in my web app.

Any thoughts much appreciated
Title: Re: auto complete some content on New Email?
Post by: SKaero on April 06, 2017, 02:32:06 PM
I think this could be done with the js event hooks https://github.com/roundcube/roundcubemail/wiki/Plugin-Events