Mail_Go

Mail函数的异步版本。

Mail_Go函数立即返回一个并发对象,可以使用该并发对象的wait方法获取邮件发送结果。邮件发送成功返回真值(例如:true),发送失败返回假值(例如:false)。 object

Mail_Go(smtpServer, smtpUsername, smtpPassword, mailTo, title, body)

用于指定邮件发送方的SMTP服务地址。 smtpServer true string 用于指定邮件发送方的邮箱地址。 smtpUsername true string 邮件发送方邮箱的SMTP密码。 smtpPassword true string 用于指定邮件接收方的邮箱地址。 mailTo true string 邮件标题。 title true string 邮件正文。 body true string

”`javascript function main() { var r1 = Mail_Go(“smtp.163.com”, “asdf@163.com”, “password”, “111@163.com”, “title”, “body”) var r2 = Mail_Go(“smtp.163.com”, “asdf@163.com”, “password”, “111@163.com”, “title”, “body”)

var ret1 = r1.wait()
var ret2 = r2.wait()

Log("ret1:", ret1)
Log("ret2:", ret2)

} python

不支持”`


// 不支持

在回测系统中不起作用。

{@fun/Global/Mail Mail}