Skip to content

$fn.sendMail(param)

Send an email. "asynchronous"

Arguments

NameTypeDescription
paramobjectParameter object indicating the contents of the email transmission

param details

PropertyTypeDescription
tostring arrayTO address (multiple)
ccstring arrayCC address (multiple)
bccstring arrayBCC address (multiple)
fromAddressstringFrom address
fromNamestringFrom Name
subjectstringSubject
textstringBody
encodingbooleantrue: Base64 encoding of fromName
false: Do not Base64-encode fromName
Default is false
Execution EnvironmentfromAddressfromNameEmail Address Identities format
Free-(not available)-(not available)no-reply@webperformer.jp
Premiumavailablenot availableconfigured address
Premiumnot availableavailableconfigured name no-reply@webperformer.jp
Premiumavailableavailableconfigured name

Return value

None

Sample

try {
let toArray=["user01@test.co.jp"];
let textValue = $ui.text.value;
let subjectValue = $ui.subject.value;
const params = {
to: toArray,
text: textValue,
subject: subjectValue
};
await $fn.sendMail(params);
} catch(err) {
console.log("Error", err);
}