$fn.sendMail(param)
Send an email. "asynchronous"
Arguments
Name | Type | Description |
---|---|---|
param | object | Parameter object indicating the contents of the email transmission |
param details
Property | Type | Description |
---|---|---|
to | string array | TO address (multiple) |
cc | string array | CC address (multiple) |
bcc | string array | BCC address (multiple) |
fromAddress | string | From address |
fromName | string | From Name |
subject | string | Subject |
text | string | Body |
encoding | boolean | true: Base64 encoding of fromName false: Do not Base64-encode fromName Default is false |
Execution Environment | fromAddress | fromName | Email Address Identities format |
---|---|---|---|
Free | -(not available) | -(not available) | no-reply@webperformer.jp |
Premium | available | not available | configured address |
Premium | not available | available | configured name no-reply@webperformer.jp |
Premium | available | available | configured 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); }