【发布时间】:2016-02-23 20:04:17
【问题描述】:
首先我不是一个真正的程序员,几乎无法完成这个
我想使用 Outlook 发送一封定期电子邮件,所以我用谷歌搜索它并找到了我在记事本中编写的这个脚本,然后将其保存在 .vbs 中,邮件正文使用 HTML,之后我将计划任务设置为自动. 它对我来说真的很好用,但现在我想在这封电子邮件中添加一个附件如果有人可以帮助我,这是我使用的脚本
Dim olkApp
Dim olkSes
Dim olkMsg
Set olkApp = CreateObject("Outlook.Application")
Set olkSes = olkApp.GetNamespace("MAPI")
olkSes.Logon olkApp.DefaultProfileName
Set olkMsg = olkApp.CreateItem(0)
With olkMsg
'On the next line enter the email address of the person you want to send to'
.Recipients.Add "to email"
.Recipients.ResolveAll
'On the next line enter the email subject'
.Subject = "Reminder Email"
'On the next line enter your message. You can use HTML formatting.'
.HTMLBody = "here i put my message using HTML"
.Send
End With
Set olkMsg = Nothing
olkSes.Logoff
Set olkSes = Nothing
Set olkApp = Nothing
我想在这封电子邮件中添加附件,有人可以帮我吗
【问题讨论】:
标签: email vbscript outlook recurring