跳至主要内容

如何在Outlook中选择特定账户发送邮件?

Author: Siluvia Last Modified: 2025-05-07

在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中指定的默认账户发送。