發送帶有投票按鈕的電子郵件後,您將收到收件人的投票響應。 但是,有時可能會有一些未投票的接收者。 在這種情況下,您可能希望向他們發送通知郵件。 本文將幫助您快速入門。
Outlook允許用戶發送帶有投票按鈕的電子郵件。 如果您已將此類電子郵件發送給許多收件人,那麼您肯定希望盡快得到他們的投票答复。 不過,如果您發現某些收件人在幾天后仍未投票,則可能希望向他們發送通知電子郵件。 在這種情況下,它要求您通過標準方式手動提取收件人,這有點麻煩。 現在,在下文中,我們將為您介紹另一種簡便的方法。
發送通知電子郵件給尚未投票的人
- 首先,點擊“ Alt + F11”以觸發Outlook VBA編輯器。
- 然後,將以下代碼複製並粘貼到未使用的模塊中。
Sub SendNotification_ThoseNotVoted()
Dim objMail As Outlook.MailItem
Dim objRecipient As Outlook.Recipient
Dim objNotification As Outlook.MailItem
Select Case Application.ActiveWindow.Class
Case olInspector
Set objMail = ActiveInspector.CurrentItem
Case olExplorer
Set objMail = ActiveExplorer.Selection(1)
End Select
'Create a notification email
Set objNotification = Outlook.Application.CreateItem(olMailItem)
'Add those who haven't voted to the notification email as recipients
For Each objRecipient In objMail.Recipients
If objRecipient.TrackingStatus = olTrackingNone Then
objNotification.Recipients.Add objRecipient.Address
Else
If objRecipient.AutoResponse = "" Then
objNotification.Recipients.Add objRecipient.Address
End If
End If
Next
'Set the notification email details
With objNotification
.Recipients.ResolveAll
.Subject = "Please Vote!!!"
.Body = "Please vote as soon as possible!!"
.Attachments.Add objMail
'.Send ==> To directly send out
.Display
End With
End Sub
- 之後,為方便起見,請參考“如何在Outlook中運行VBA代碼“。
- 最終,請執行以下操作來運行此宏。
- 首先,選擇或打開帶有投票按鈕的原始電子郵件。
- 然後,單擊快速訪問工具欄中的宏按鈕。
- 一次,將顯示一封新電子郵件,如下面的屏幕截圖所示。 其中包括尚未在“收件人”字段中投票的原始收件人。 並且其主題和正文已根據代碼中的預定義值進行了設置。
應付煩人的Outlook問題
與其他應用程序類似,Outlook可能會遇到各種問題,例如崩潰,凍結,頻繁出現錯誤消息等,毫無疑問,沒有人願意遇到它們。 但是,要避免它們確實是很難的。 您可以做的就是堅持定期備份Outlook文件,這樣即使PST文件損壞了,您仍然可以取回有價值的Outlook數據,而無需 維修PST.
作者簡介:
Shirley Zhang是的數據恢復專家 DataNumen,Inc.是數據恢復技術的全球領導者,包括 損壞的MDF 和Outlook修復軟件產品。 欲了解更多信息,請訪問 萬維網。datanumen.COM


