Skip to main content

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

ParameterRequiredTypeDefaultDescription
pwdTruestring""Login password bound to the mailbox of IBM Notes
arryToTruestring""Destination email address, can be an array with multiple addresses, or a string of a separate email
strTitleTruestring""Mail subject
arryCCTruestring""CC email address can be an array containing multiple email addresses or a string of a separate email address
arrBCCTruestring""BCC email addresses, can be an array of multiple email addresses, or a string of a separate email address
sHtmlTypeTrueenum"text"The format of the email body
strContentTruestring""The content of the email body
arryAttachmentTruearray['''C:\Users''']Email attachment can be an array of multiple file routes or a single route
nTimeOutTruenumber30000Specify 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