MAIL : object

邮件

Kind: global namespace

MAIL.sendMail(from, to, subject, body, host, user, password, bbc, validate)

发送邮件

Kind: static method of MAIL

Param Type Description
from String 发送人地址
to String 接收人地址
subject String 主题
body String 内容
host String 邮件服务器地址
user String 邮件服务器用户名
password String 密码
bbc String 秘密抄送地址
validate Boolean 是否校验

MAIL.sendEmailBySystemUser(to, subject, content)

以系统配置的用户发送邮件

Kind: static method of MAIL

Param Type Description
to String 接收人地址
subject String 主题
content String 内容

MAIL.sendMailWithAttachments(from, to, subject, body, attachFiles, host, user, password, bbc, validate)

发送邮件

Kind: static method of MAIL

Param Type Description
from String 发送人地址
to String 接收人地址
subject String 主题
body String 内容
attachFiles String 附件列表(数据格式:字符串数组;内容:存放附件的完整物理地址如”["D:\附件.txt"]”)
host String 邮件服务器地址
user String 邮件服务器用户名
password String 密码
bbc String 秘密抄送地址
validate Boolean 是否校验

MAIL.sendEmailWithAttachmentsBySystemUser(to, subject, content, attachFiles)

以系统配置的用户发送邮件(带附件)

Kind: static method of MAIL

Param Type Description
to String 接收人地址
subject String 主题
content String 内容
attachFiles String 附件列表(数据格式:字符串数组;内容:存放附件的完整物理地址如”["D:\附件.txt"]”)
文档更新时间: 2023-05-29 03:35   作者:admin