2021.1

Table Of Contents
if (!$sender.prop("disabled") && sender.length) {
config.sender = sender;
var senderName = $senderName.val().trim();
if (senderName.length) config.senderName =
senderName;
if ($useSender.prop("checked")) config.useSender =
true;
}
if (host.length) {
config.host = host;
if ($useAuth.prop("checked")) config.useAuth =
true;
if (config.useAuth) {
if ($startTLS.prop("checked"))
config.useStartTLS = true;
config.user = $username.val();
config.password = $password.val();
}
} else {
if ($eml.prop("checked")) config.eml = true;
}
if (attachPdfPage !== "default")
config.attachPdfPage = (attachPdfPage === "true");
if ($("#attachweb").prop("checked"))
config.attachWebPage = true;
/* Process Content Creation (By Data) (JSON) */
var settings = {
type: "POST",
url:
"/rest/serverengine/workflow/contentcreation/email/" + templateId,
data: JSON.stringify(config),
contentType: "application/json"
};
if (section.length) settings.url += "?section=" +
section;
$.ajax(settings)
.done(function (response, status, request) {
var progress = null;
operationId = request.getResponseHeader
Page 337