通过Outlook发送邮件到lua

时间:2019-04-30 15:32:08

标签: lua

我通过gmail发送电子邮件。它运作完美。如何更改服务器设置,以便可以通过Outlook发送电子邮件?

这些是gmail的设置

local ok, err = smtp.send {
    from = '<>',
    rcpt = too,
    source = smtp.message(msg),
    user = us,
    password = pswrd,
    server = 'smtp.gmail.com',
    port = 465, 
    create = sslCreate
}

如果我写

local ok, err = smtp.send {
    from = '<>',
    rcpt = too,
    source = smtp.message(msg),
    user = us,
    password = pswrd,
    server = 'smtp-mail.outlook.com',
    port = 587, 
    create = sslCreate

}

它不适用于Outlook

如何解决?

0 个答案:

没有答案