通过交换在线 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/PW 正确。
  • 认安全设置已关闭
  • 尝试端口 25,smtp authenicate = 1

你有什么想法吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)