vba - 通过 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
采取的步骤:
- 在办公室管理门户中,启用 SMTP AUTH。
- ID/密码正确。
- 默认安全设置为关闭。
- 尝试了端口 25,smtp authenicate = 1
你有什么想法?
解决方案
推荐阅读
- ponyorm - Comparing entity instances in PonyORM
- javascript - 使用带有元素ID的onkeyup函数从HTML获取值到jquery?
- r - R:获取用 package::function 调用的函数名称作为 R 中的字符串
- android - 克隆项目后无法解析 android 中的符号“R”
- node.js - 即使启用了端口,Socket io.connect 也无法正常工作
- java - spring boot 无法在 spring 测试类中注入 spring 服务
- go - 如何从 hyperledgerfabric 分类帐中获取数据并更新
- php - php动态获取网页中特定单词的计数
- mongodb - java mongo驱动中mongo shell UUID()的等价物
- selenium - 如何使用java lang在selenium中找到具有href作为java脚本函数的链接