Skip to content

Script: OpenComposeWindow

Samuel Plentz edited this page Sep 15, 2022 · 1 revision

Open a new compose window with a certain subject.

Script

let subject = this.mVariables[0];

var url = encodeURI("mailto:?Subject=" + subject);
this.mWindow.open(url, "_self", "chrome,extrachrome,menubar,resizable,scrollbars,status,toolbar");

Usage

Open a new compose window withthe subject. hi there:

[[SCRIPT=OpenComposeWindow|Hi there]]