Skip to main content
Version: v6.5.0

Reply to an email

Command Description​

Reply to messages via Office365 Outlook

Command Prototype​

Office365.ReplyToMail(o365Ctx ,strAccount ,objMailMessage ,addTo ,addCc ,addBcc ,strSubject ,strBody ,strImportance ,bDraft ,bAsHtml ,arrAttachments ,bReplyAll ,strBehalf)

Command parameter​

parameterrequiredtypeDefault valuedescribe
o365CtxTrueexpressiono365CtxObjects returned by connecting to the Office365 server
strAccountTruestring""Account to be operated
objMailMessageTrueexpression{}Email objects in the mailing list
addToTruestring""The added recipient email address can be an array containing multiple email addresses or a single email string
addCcTruestring""The added cc email address can be an array containing multiple email addresses or a single email string
addBccTruestring""The added confidential email address can be an array containing multiple email addresses or a single email string
strSubjectTruestring""Subject of response
strBodyTruerichText""The body content of the response, which supports HTML type body content
strImportanceTrueenum"Normal"importance
bDraftTruebooleanFalseDo you want to save a draft
bAsHtmlTruebooleanTrueIs it in HTML format
arrAttachmentsTruearray[]Email attachments can be an array containing multiple attachment paths or a string of attachment paths
bReplyAllTruebooleanFalseResponse to everyone
strBehalfTruestring""Proxy account requires relevant configuration, default is empty

Return result​

Run instance​

/*********************************回复邮件****************************************
命令原型:
Office365.ReplyToMail(o365Ctx ,strAccount ,objMailMessage ,addTo ,addCc ,addBcc ,strSubject ,strBody ,strImportance ,bDraft ,bAsHtml ,arrAttachments ,bReplyAll ,strBehalf)
入参:
o365Ctx--Office365对象.注:连接Office365服务器返回的对象
strAccount--帐户.注:待操作的帐户
objMailMessage--邮件对象.注:邮件列表中的邮件对象
addTo--增加的收件人.注:增加的收件人邮箱地址,可以是一个包含多个邮箱地址的数组,也可以是一个单独的邮箱字符串
addCc--增加的抄送邮箱.注:增加的抄送邮箱地址,可以是一个包含多个邮箱地址的数组,也可以是一个单独的邮箱字符串
addBcc--增加的密送邮箱.注:增加的密送邮箱地址,可以是一个包含多个邮箱地址的数组,也可以是一个单独的邮箱字符串
strSubject--邮件主题.注:回复的主题
strBody--邮件正文.注:回复的正文内容,支持HTML类型的正文内容
strImportance--重要性.注:重要性
bDraft--存草稿.注:是否存草稿
bAsHtml--html格式.注:是否html格式
arrAttachments--邮件附件.注:邮件附件,可以是一个包含多个附件路径的数组,也可以是一个附件路径字符串
bReplyAll--回复所有人.注:是否回复所有人
strBehalf--代发帐户.注:代发帐户,需要做相关的配置,默认为空
出参:
无
注意事项:
无
********************************************************************************/
Office365.ReplyToMail(o365Ctx ,"" ,{} ,"" ,"" ,"" ,"" ,"" ,"Normal" ,False ,True ,[] ,False ,"")