【发布时间】:2021-07-11 16:45:58
【问题描述】:
我正在使用 Excel VBA 发送邮件:
With OutlookApplication.CreateItem(olMailItem)
.Subject = topic
.to = emailAddress
.HTMLBody = content
.Send
msgbox .Sent
end with
.Sent 在我的计算机上引发错误。
我问为什么: How to keep reference to mail after sending in Outlook VBA?
我决定忽略该错误并假设电子邮件参考在发送后消失。
现在一位客户报告说,.Send 在发送电子邮件时返回 False。
.Sent 为什么撒谎?
【问题讨论】: