我正在寫回復每封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