How to receive mails on behalf of when sent to group mail?

Status
Not open for further replies.

Ivanhou

Member
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server 2013
Hi,
I receive mails from a group mail sender - Pi_team@mycompany.com (Pi_team@mycompany.com is in the From field, it's also in the contact list as Pi_team). In the message header there are some specific words I can search for -> ex: From: Mike "Pi_team@mycompany.com.
Is it possible to set up a rule to see "Mike on behalf of Pi_team" in the From field of these incoming mails?

What should I set up to make these mails come as sent on behalf of?

Thanks in advance!

Ivanhou
 
You can use words in the header and search for the phrase as it appears in the header but you can't change what you see in the From field using straight VBA. You can use Redemption (What is Redemption)

Sample code using redemption is below - you can look at the values using MFCMAPI to see what outlook has for the sender name and representing name and see if both need changed or if you can use one value in the other field.

After installing redemption, you can run this code and it will change the name to whatever you want. You'll need additional code to grab the name from the header.
Code:
Sub changename()
Dim rSession As Redemption.RDOSession
    Dim rMail As Redemption.RDOMail
    Dim ID As String
    Const PR_SENDER_NAME = &HC1A001E
    Const PR_SENT_REPRESENTING_NAME = &H42001E
    Set rSession = CreateObject("Redemption.RDOSession")
    rSession.Logon
    ID = Application.ActiveExplorer.Selection.Item(1).EntryID
    Set rMail = rSession.GetMessageFromID(ID, Application.Session.DefaultStore.StoreID)
    rMail.Fields(PR_SENDER_NAME) = "New Name"
    rMail.Fields(PR_SENT_REPRESENTING_NAME) = "New Name"
    rMail.Save
    rSession.Logoff
End Sub

code samples to get the value from the header or other fields:
Get Outlook's Internet Headers using VBA
Read MAPI properties not exposed in Outlook's Object Model
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
H Send/Receive Error Sending E-Mails Using POP3 GMail Account Using Outlook 2
K Outlook 2002 Can Not Send Or Receive E-mails Using Outlook 3
TomHuckstep Remove Send/Receive All Folders (IMAP/POP) button from Outlook 365 Ribbon Using Outlook 2
Geldner Send / Receive a particular group via macro or single keypress Using Outlook 1
A Change settings Send/receive VBA Outlook VBA and Custom Forms 0
R How to restrict GWSMO sync to Outlook Send/Receive cycles Using Outlook 0
M Outlook 2016 IOS recipients receive my paragraph double space as quadruple space Using Outlook 2
C Synchronizing subscribed folders causes hanging during send/receive process Using Outlook 2
D Archive by receive date not working Using Outlook 2
C Send/receive error 80040119 Using Outlook 2
ChrisK2 Send email to advertise@slipstick.com fails: "The group advertising isn't set up to receive messages from..." Using Outlook 3
M Send/Receive error 0x800CCC0F Using Outlook 0
N Outlook 2010 will not send nor receive Using Outlook 4
L Outlook 2007 Separate the Send/Receive functions Using Outlook 2
L How to automaticlly Send/Receive every 3 mins but override send if send/receive is pressed Using Outlook 2
Diane Poremsky Configuring a Manual Send and Receive in Outlook Using Outlook 0
M configure Onpremise exchange to send/receive emails internally and externally) Exchange Server Administration 0
M receive mail when appointment category changes and create task from appointment Outlook VBA and Custom Forms 0
P Outlook 2007 not sending/receiving until restart (send/receive stuck at __%) Using Outlook 27
J Send and Receive Button - only check default account? Using Outlook 1
S send/receive issues outlook 2013 Using Outlook 4
W OUTLOOK 2007 FREEZES. WILL NOT SEND NOR RECEIVE Using Outlook 1
Z Always Send from Default Account, depend of receive account Outlook VBA and Custom Forms 7
wisedave Office 365 Outlook - Emails send but don't receive Using Outlook 12
RBLampert Outlook "can't find" my e-mail server to receive messages Using Outlook 22
Diane Poremsky Receive a Reminder When a Message Doesn't Arrive? Using Outlook 10
D Outlook 2010 hangs during message send/receive Using Outlook 2
S Outlook 2010 I am getting error code 0x8DE00006 'the operation failed'. outlook 2010 send/receive progress Using Outlook.com accounts in Outlook 2
Nesher Can send but not receive Using Outlook 1
David Trevose Hanging on Send Receive Using Outlook 2
mikecox "Send/Receive" goes missing Using Outlook 3
R Email Send & Receive Turned off but sends automatically anyway Using Outlook 1
N Outlook 2010 take long time in send / receive Using Outlook 1
J why won't the automatic send/receive work Using Outlook 7
A Auto send-receive in Outlook not working Using Outlook 6
R send/receive no action Using Outlook 2
A yahoo mail doesn't send or receive reliably Using Outlook 1
L I can't receive messages-HELP! Using Outlook 0
E Strange Send/Receive count Using Outlook 3
A receive error when create new business contact BCM (Business Contact Manager) 14
Jennifer Murphy Why would I want to send/receive when offline? Using Outlook 0
P Outlook 2010 will not receive on startup Using Outlook 0
S Send/Receive Progress is black??? Using Outlook 4
I could not open attached files, i receive a message with “corrupted file” Using Outlook 0
U Odd behaviour for auto-receive Using Outlook 2
M Send receive Progress Box Using Outlook 4
0 Outlook 2010 causes computer to lose connection when opening and Send/Receive Using Outlook.com accounts in Outlook 14
D Emails stuck in Outbox, not receiving emails, Outlook 2010 auto send/receive Using Outlook 4
A Send only, don't receive Using Outlook 1
P Not able to receive meeting request Using Outlook 2

Similar threads

Back
Top