Insert Custom Message Header value in an email

Brass Contributor

Hello,

 

Environment: Exchange Online

Is it possible to Insert Custom value in the Message Header of an email?

 

Regards,

 

Dematri

6 Replies

Thanks Vasil....

 

Sorry I should have added earlier - 

 

Is it possible to add the sender address to an existing message header value (type: X-Protective)

Here, sender address will change based on the sender id.

 

Any suggestion will be of great help.

In general yes, but depends on the header. Some headers will be stripped/overwritten by the server, you cannot for example "forge" and antispam header, etc.

Any article that you shared that provides the approach of how to get it tested?

there are some examples in the article above.

@Vasil Michev 

Hello, 

with EWS platform evolving, I find transport rules need more heavy lifting.  here is my scenario. 

i have 500 mailboxes auto-forward "deliver-to-forward" to few target mailboxes , from which EWS process emails to application. 

 

some scenarios i cannot figure , which mailbox forwarded the email, we need to add Sender/forwarding mailboxes email address to a X-header. 

 

i found a transport rule to achieve this, i cna define any auto-forwarded email set the message header value x-something ...... Value, "here is the problem" 

it is not taking variable like %%FROM%%, %%TO%%.... ETC, any way to achive this. 

MAnju