Roundcube Community Forum

 

VBA_Script to compose message an attach attachment

Started by robertodello, June 08, 2021, 08:39:18 AM

Previous topic - Next topic

robertodello

Hello people!
I m new to this forum and I just have one question :
Is there a possiblity to open the "composer" in roundcube, set the "to", the "subject", the message"body" from a script eg VBA through the html-call.
I found out this link :
http://xxx.xxx.xxx/roundcube/?_task=mail&_action=compose&_subject=test&[email protected]&_body=Hallo&
does allmost all but not all
I use it to open it via VBA ("Application.followhyperlink") from Access Database to set prefromulated emails as if it would be like "thunderbird -c ... "

Id like to join an attachment And to set it to HTML as standard.

Thanks for Ideas!
Greetings robert

JohnDoh

Though the URL Roundcube supports everything required by the mailto: protocol. For things like attachments and format you are going beyond what can reasonable be done through URL params. You would need to write a plugin on something like the message_compose hook then you can provide attachments etc.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...