Author Topic: VBA_Script to compose message an attach attachment  (Read 61 times)

Offline robertodello

  • Newbie
  • *
  • Posts: 1
VBA_Script to compose message an attach attachment
« on: June 08, 2021, 08:39:18 AM »
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&_to=test@test.de&_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

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,592
Re: VBA_Script to compose message an attach attachment
« Reply #1 on: June 10, 2021, 04:25:38 PM »
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ā€¦