资源加载中... loading...

Mail_Go

Asynchronous version of the Mail function.

The Mail_Go function returns a concurrent object immediately, and you can use the wait method of that concurrent object to get the result of the mail delivery. A successful mail delivery returns a true value, e.g., true, and a failed delivery returns a false value, e.g., false. object

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

It’s used to specify the SMTP service address of the email sender. smtpServer true string It’s used to specify the email address of the email sender. smtpUsername true string The SMTP password for the email sender’s mailbox. smtpPassword true string It’s used to specify the email address of the email recipient. mailTo true string Email title. title true string Email body. body true string

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)
}
# Not supported.
// Not supported.

It does not work in the backtesting system.

{@fun/Global/Mail Mail}

Mail SetErrorFilter