Outlook 規則會在正文中回覆電子郵件而不是寄件人

Outlook 規則會在正文中回覆電子郵件而不是寄件人

我想知道是否可以在 Outlook 中設定一條規則來回應正文中的電子郵件,而不是回覆實際的寄件者。

我們透過網站接收想要註冊我們資料庫的人的電子郵件,但是所有電子郵件都來自同一個電子郵件地址 - 自動回复(管理該網站的公司)以及請求註冊的人的詳細信息,包括他們的電子郵件都在正文中。

我想知道是否有一個選項可以選擇回覆應發送到哪個電子郵件?

我正在使用 Outlook 2010

謝謝你的幫助,莎拉

答案1

您的電子郵件很清晰,但缺乏細節,例如在哪裡電子郵件是。是的,在正文中,但這並沒有真正的幫助,因此我創建了一個演示模型,它應該很容易理解:

假設我收到的電子郵件採用以下格式:

尊敬的先生,

我們收到以下詳細信息

電子郵件:myEmail@domain 電話:12345

我們將聯繫

已註銷

以下 VBa 代碼將尋找電子郵件地址,並在「收件者」欄位中開啟包含此位址的新電子郵件

Sub MailItemContent2()
    Dim olItem As Outlook.MailItem
    Dim sText As String
    Dim sEmail As String
    Dim emailWords() As String
    Set olItem = ActiveExplorer.Selection.Item(1)
    sText = Replace(olItem.Body, vbCrLf, " ")
    emailWords = Split(sText, " ")
    Dim i As Integer
    Dim emailIndex As Integer
    emailIndex = -99
    isNext = False
    For i = 0 To UBound(emailWords)

        If (emailIndex = i) Then
           sEmail = Split(emailWords(i), Chr(34))(2)
           Exit For
        End If

        If emailWords(i) = "Email:" Then
            emailIndex = i + 2
        End If

    Next i

    Set objMsg = Application.CreateItem(olMailItem)

 With objMsg
  .To = sEmail
  '.CC = "[email protected]"
  '.BCC = "[email protected]"
  '.Subject = "The subject"
  '.Categories = "Test"
  '.VotingOptions = "Yes;No;Maybe;"
  '.BodyFormat = olFormatPlain
  '.Importance = olImportanceHigh
  '.Sensitivity = olConfidential


  .Display
End With

Set objMsg = Nothing        

End Sub

相關內容