naxdefense.blogg.se

Outlook rule from domain
Outlook rule from domain













outlook rule from domain
  1. #Outlook rule from domain manual
  2. #Outlook rule from domain download

If Item.SenderEmailAddress Item.SentOnBehalfOfName Then 'Check whether it is sent with a different From address of the account VbNewLine & vbNewLine & Item.SendUsingAccount StrMsg = "This message will be sent with the following account:" & _

outlook rule from domain

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) 'Always verify sending account and from address.

#Outlook rule from domain manual

You can use the code below for review or manual installation. The following code is contained in the zip-file referenced in the Quick Install. ThisOutlookSession module in the VBA Editor. Sign your code so you won’t get any security prompts and the macro won’t get disabled.Paste the copied code in the ThisOutlookSession module.Open the VBA Editor (keyboard shortcut ALT+F11).

#Outlook rule from domain download

Download this code-file ( checksendingaccount.zip) and copy the code from the CheckSendingAccount.txt file or copy the code below.Use the following instructions to configure the macro in Outlook When cancelling, you’ll return to your message Draft so you can adjust the sending account and/or From address of the message. Press the OK button to send the message or press Cancel to prevent sending the message. This can for instance occur when you have a second address (alias) assigned to your account or when sending on behalf of a Shared Mailbox or a colleague or manager as a Delegate. When you send from an address which is different from the primary address of your account, you’ll be notified in the following way There is nothing else that you need to configure or change about your sending routine You press the Send button and Outlook shows you the following dialog box The CheckSendingAccount macro shows you a dialog with your selected sending account or also even the address, for each emails that you send. Nowadays, it is quite likely that you have multiple email accounts configured in Outlook.Įspecially when working from home, you don’t want to end up sending your business emails via your private account or vice versa.Īlso, when you have access to a Shared Mailbox or are a delegate for the mailbox of a colleague, you could find yourself inadvertently send from these mailboxes or forget to select it when needed.īy adding this simple VBA macro to Outlook, you can prevent sending emails from the wrong email address.















Outlook rule from domain