首页 > 解决方案 > 通过 Exchange Online VBA 发送电子邮件

问题描述

我正在努力设置 smtp 以进行在线交换。

这是代码:

With eMailConfig.Fields
    .Item(SchemaPath & "sendusing") = 2
    .Item(SchemaPath & "smtpserver") = "smtp.office365.com"
    .Item(SchemaPath & "smtpserverport") = "587"
    .Item(SchemaPath & "smtpauthenticate") = True
    .Item(SchemaPath & "sendusername") = "o365account"
    .Item(SchemaPath & "sendpassword") = "password" 
    .Update
End With

然后想出了错误:

���� '8004020e' /site/common/function.asp, �� 355

采取的步骤:

你有什么想法?

标签: vbasmtpoffice365exchange-servercdo.message

解决方案


推荐阅读