Skip to main content

如何在Outlook中選擇特定帳號來發送郵件?

Author: Siluvia Last Modified: 2025-05-13

在Outlook中,沒有內建功能可以讓您始終通過特定帳號發送新郵件。您需要在發送之前手動更改撰寫郵件窗口中的“發件人”帳號。實際上,VBA代碼可以幫助您解決這個問題。

使用VBA代碼選擇特定帳號發送新郵件
使用Kutools for Outlook始終以默認郵件帳號回覆郵件


使用VBA代碼選擇特定帳號發送新郵件

以下VBA代碼可幫助您在Outlook中始終使用特定帳號發送新郵件。請按照以下步驟操作。

1. 按 Alt + F11 打開 Microsoft Visual Basic for Applications 窗口。

2. 在打開的窗口中,點擊 插入 > 模組。然後將以下VBA代碼複製到模組窗口中。

VBA代碼:在Outlook中始終使用特定郵件帳號發送郵件

Public Sub NewBySpecAccount()
'Updated by ExtendOffice 20181130
Dim oAccount As Outlook.Account
Dim oMail As Outlook.MailItem
For Each oAccount In Application.Session.Accounts
If oAccount.DisplayName = "Your account address" Then
    Set oMail = Application.CreateItem(olMailItem)
    oMail.SendUsingAccount = oAccount
    oMail.Display
End If
Next
End Sub

注意:在代碼中,請將 “您的帳號地址” 替換為您將用於發送郵件的真實郵件帳號。

3. 按 Alt + Q 鍵關閉 Microsoft Visual Basic for Applications 窗口。

4. 點擊 自定義Outlook訪問工具欄 按鈕,然後從下拉菜單中點擊 更多命令。請參見截圖:

steps on choosing a specific account to send new email with VBA code

5. 在Outlook選項窗口中,您需要:

5.1) 從“選擇命令來自”下拉列表中選擇

5.2) 在命令框中選擇 vba 名稱 Project1.NewBySpeAccount

5.3) 點擊 添加 按鈕和 確定 按鈕。請參見截圖:

steps on choosing a specific account to send new email with VBA code

6. 現在,VBA按鈕已添加到快速訪問工具欄上。

steps on choosing a specific account to send new email with VBA code

從現在開始,無論您當前在哪個帳號,點擊快速訪問工具欄上的VBA按鈕將會打開一個帶有特定郵件帳號的新郵件窗口,並顯示在“發件人”字段中。


使用Kutools for Outlook始終以默認郵件帳號回覆郵件

如果您希望在Outlook中始終使用默認郵件帳號回覆郵件,請嘗試Kutools for Outlook始終以默認帳號回覆 功能。

 ? Kutools for Outlook 現在有免費版本,其 70+ 功能終身免費。立即下載免費版本

1. 點擊 Kutools > 選項。請參見截圖:

steps on always replying emails with default email account with Kutools for Outlook

2. 在選項窗口中,勾選回覆選項卡下的 始終以默認帳號回覆方框,然後點擊確定完成設置。

steps on steps on always replying emails with default email account with Kutools for Outlook

從現在開始,所有回覆的郵件都將通過您在Outlook中指定的默認帳號發送。