Locate item Account

Status
Not open for further replies.
Outlook version
Outlook 2010 32 bit
Email Account
POP3
I receive email from 6 different emails accounts. In the display I can see the name of the account. but can not find how to recognize it in VBA as a property of the mail item. Any help would be appreciated. thanks
 
Outlook version
Outlook 2010 32 bit
Email Account
POP3

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
If the property is empty, the email was received on the default account. If you don't receive an email on a second account but forward it from another address to the default account, then you won't see that information in the mentioned property.
 
Outlook version
Outlook 2010 32 bit
Email Account
POP3
I thank you gain for your help, but that does not appear to match my tests. I have 3 Accounts. at least 98% of all my mail is sent directly to one of these accounts. They come in to 3 different PSTs, but after receipt I move them around to either a 4th "temp" pst or to my main pst. In the outlook explorer window I can add a column "E-mail Account" and it shows the name of the account the item was originally received by. If I hit reply the sending account is the always the account through which the item was originally received. As noted, I am sure that very few of these were received through any forwarding process. I have tested the script on a large number of items -- in each of the psts, and from each of the accounts. "Msgbox mail.sender" always verifies that I am seeing the correct item, but "MsgBox Mail.Fields(PR_NEXT_SENDING_ACCOUNT)(PR_NEXT_SENDING_ACCOUNT)" continues to show blank.
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
You're right, the value for the property is &HE29001F instead of &H808E001E.
 
Outlook version
Outlook 2010 32 bit
Email Account
POP3
Thanks - that works very well. The value given includes the return email address as well as the account name.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
C Can't Locate an Unread Message in my Outlook view pane Using Outlook 0
Britonius Locate Cause of Deleted Meeting Using Outlook 0
R I have imported a .pst file into my outlook and I cannot locate it. It seems to be in my main Inbox Using Outlook 1
J Archives: Unable to locate emails Using Outlook 1
C O2010: Using Advanced Find to locate exact queries Using Outlook 3
B Can't locate in Outlook custom form where is message from Using Outlook 4
D Unable to locate mispelled autocorrect suggestion Using Outlook 3
C User defined field not found in any views prints. Cannot locate to delete. Using Outlook 2
S Outlook 2016 dont delete inbox item Using Outlook 0
talla Can't open Outlook Item. Using Outlook 0
N Item cannot be saved because it was modified by another user or window, and, Item could not be moved... Using Outlook 0
B Zoom automatically next email item (VBA) Outlook VBA and Custom Forms 2
S Command Button_Click action on Item/Reminder Outlook VBA and Custom Forms 3
A Unflag Inbox and Flag Inbox with Orange Category After Item is send Outlook VBA and Custom Forms 3
A Run-time error '430' on certain emails when trying to set "Outlook.mailitem" as "ActiveExplorer.Selection.Item" Outlook VBA and Custom Forms 2
C Copy Move item won't work Outlook VBA and Custom Forms 2
T Pictures degrade each time an Outlook item is edited and re-saved Using Outlook 1
B Change row background color of selected item Using Outlook 1
P Outlook 2013 "Item could not be moved - still an issue for Outlook 2013 Using Outlook 0
R Error when trying to forward current email item Outlook VBA and Custom Forms 7
geoffnoakes Find Contacts with UDFs "in this item" Using Outlook 1
T "cannot find the calendar folder for this item" - calendar items stuck in outbox Using Outlook 0
GregS Many Sent Item folders Using Outlook 3
B Select / activate first email item in the searched query Using Outlook 1
4 Macro to set the category of Deleted Item? Outlook VBA and Custom Forms 2
N "Discussion" item Using Outlook 3
T outlook.com opens with "item not found" Using Outlook 1
Peter H Williams How to Move Mail item after processing Outlook VBA and Custom Forms 5
C Change default "Save Sent Item To" folder Outlook VBA and Custom Forms 9
M Shortcut to another outlook item Using Outlook 0
M Item edits doesn't always sync Using Outlook 11
Cdub27 Your changes to this item couldn't be saved because Server Denied Operation (HTTP 403 Forbidden) Using Outlook 1
M VBA to change flag status in outlook contact item Outlook VBA and Custom Forms 3
P Replying to calendar item using VBA Outlook VBA and Custom Forms 4
G Outlook item link Using Outlook 0
Q VBA Script to move item in secondary mailbox Outlook VBA and Custom Forms 2
D Save Sent Item to Using Outlook 0
T outlook 2010 mail item count doesnt match display Outlook VBA and Custom Forms 3
Jeanne Goodman Delete Calendar Item Bypassing Deleted Items folder Outlook VBA and Custom Forms 2
Diane Poremsky Display the Created Date field of any Outlook item Using Outlook 0
Diane Poremsky Outlook VBA: Work with Open Item or Selected Item Using Outlook 0
Z Item.Recipients for Task Assignment on Send Outlook VBA and Custom Forms 10
M How does Outlook determine item numbers in a folder? Outlook VBA and Custom Forms 3
J "This item has been changed still want to delete it" message Using Outlook 3
oliv- HIDE ITEM Outlook VBA and Custom Forms 3
D help with Item/Inspector close event Outlook VBA and Custom Forms 1
T Create new item in public folder using VBscript Outlook VBA and Custom Forms 1
D Shared Mailbox with mail item marked as "private" Using Outlook 0
Diane Poremsky Change Item Count on All Folders in a Data File Using Outlook 0
M Recurring icon for custom form task item Outlook VBA and Custom Forms 6

Similar threads

Top