Setting Email Header Values

cancel
Showing results for 
Search instead for 
Did you mean: 
mrhill
Member II

Setting Email Header Values

Jump to solution

Hello,

In order that emails sent  I need to set an email header value.  I can only find documentation (Email Server configuration | Alfresco Documentation) for a very small set of email configuration.  Does anyone know how to set additional email header values?

Thanks,

Michael

1 Solution

Accepted Solutions
cjose
Senior Member II

Re: Setting Email Header Values

Jump to solution

That makes perfect sense. Since you are using APS (enterprise version), please feel free to raise a new feature request that will allow users to inject additional custom headers to all emails. A new custom extension point (Hook points | Alfresco Documentation) would be the simplest and easiest to solve this.

In the mean time, a workaround might be to use a service task/task listener/event listener etc to send emails where you can add additional headers when sending emails. eg: activiti-examples/activiti-custom-email-extension at master · cijujoseph/activiti-examples · GitHub  

Ciju

View solution in original post

4 Replies
cjose
Senior Member II

Re: Setting Email Header Values

Jump to solution

What are those additional email header values you referring to? can you please give a few examples?

Ciju

mrhill
Member II

Re: Setting Email Header Values

Jump to solution

Sure, the options are endless as email header values are key value pairs and you should be able to add anything you like.

Good useful examples are X-header.  In general X-header can refer to any non-standard header added during the sending of an email. Some examples of X-headers are:

X-Protective-Marking
X-Mailer
X-Spam-Reason
X-Brightmail-Tracker

Of particular importance to me is the X-Protective-Marking as used is government emails to properly allow access through email filters.  https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&cad=rja&uact=8&ved=0ahUKEwjlnJmS8fLUA... 

Thanks,

Michael

cjose
Senior Member II

Re: Setting Email Header Values

Jump to solution

That makes perfect sense. Since you are using APS (enterprise version), please feel free to raise a new feature request that will allow users to inject additional custom headers to all emails. A new custom extension point (Hook points | Alfresco Documentation) would be the simplest and easiest to solve this.

In the mean time, a workaround might be to use a service task/task listener/event listener etc to send emails where you can add additional headers when sending emails. eg: activiti-examples/activiti-custom-email-extension at master · cijujoseph/activiti-examples · GitHub  

Ciju

mrhill
Member II

Re: Setting Email Header Values

Jump to solution

Thanks Ciju!