我正在写回复每封email来的脚本。编程回复电子邮件在Outlook
我已经做了规则上运行的脚本所有传入邮件运行,设置分类和标记阅读。该规则将类别和标记设置为已读,但不运行脚本。以下是我的代码:
Sub reply(Item As Outlook.MailItem)
MsgBox "Hey this script is running!"
On Error GoTo ErrorTrap
Dim MsgReply As Outlook.MailItem
Set MsgReply = Item.reply
With MsgReply
.Subject = "Welcome to IT Business Builder"
.HTMLBody = "This is just a test"
.Body = "This is just a test"
.Send
End With
Set MsgReply = Nothing
ErrorTrap:
MsgBox Err.Number & " " & Err.Description & " message not sent because of error"
End Sub
运行规则后,没有消息框弹出,没有电子邮件发送。
不知道这是否可行,但尝试添加.Save before。发送 – enderland 2013-03-06 03:16:04