@raona/sp
Version:
Raona utilities to work with Sharepoint using pnp/sp
14 lines (13 loc) • 538 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var openAndCloseWindow_1 = require("./openAndCloseWindow");
function mailTo(recipients, subject, body) {
if (subject === void 0) { subject = ''; }
if (body === void 0) { body = ''; }
var emails = '';
if (Array.isArray(recipients)) {
emails = recipients.join(',');
}
openAndCloseWindow_1.openAndCloseWindow("mailto:" + emails + "?subject=" + encodeURIComponent(subject) + "&body=" + body);
}
exports.mailTo = mailTo;