Dim olApp As Outlook.Application
Dim myMail As MailItem
Set olApp = Outlook.Application
Set myMail = olApp.CreateItem(olMailItem)
With myMail
.Recipients.Add ("frownies@e172.com") '就是我的实际地址,如果成功发送了,我的手机就响了
.subject = "主题"
.Body = "正文"
.Save
.Send '这是错误停留的地方,报“运行时错误,无法打开该项目”
End With
End Function