Send-Mail
Command Description
Send a mail to the specified email address. Return true if succeeds. Return false if fails
Command Prototype
bRet = IBMNotes.Send(pwd,arryTo,strTitle,arryCC,arrBCC,sHtmlType,strContent,arryAttachment,nTimeOut)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
pwd | True | string | "" | Login password bound to the mailbox of IBM Notes |
arryTo | True | string | "" | Destination email address, can be an array with multiple addresses, or a string of a separate email |
strTitle | True | string | "" | Mail subject |
arryCC | True | string | "" | CC email address can be an array containing multiple email addresses or a string of a separate email address |
arrBCC | True | string | "" | BCC email addresses, can be an array of multiple email addresses, or a string of a separate email address |
sHtmlType | True | enum | "text" | The format of the email body |
strContent | True | string | "" | The content of the email body |
arryAttachment | True | array | ['''C:\Users'''] | Email attachment can be an array of multiple file routes or a single route |
nTimeOut | True | number | 30000 | Specify the waiting time(in milliseconds), by default 30000 milliseconds. Timeout will cause exception |
return
bRet,The variable used to save the output of the command.
Demo