cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Email Header Values

mrhill
Champ in-the-making
Champ in-the-making

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 ACCEPTED ANSWER

cjose
Elite Collaborator
Elite Collaborator

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 answer in original post

4 REPLIES 4

cjose
Elite Collaborator
Elite Collaborator

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

Ciju

mrhill
Champ in-the-making
Champ in-the-making

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
Elite Collaborator
Elite Collaborator

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
Champ in-the-making
Champ in-the-making

Thanks Ciju!