cancel
Showing results for 
Search instead for 
Did you mean: 

Rule email only from alfresco_repository@alfresco.org

durianwool
Champ in-the-making
Champ in-the-making
Hi,

I set up a rule such that all inbound content to a space will send an email to a user. it works, but the sender is 'alfresco_repository@alfresco.org'.


How can I change that? I did a grep at '\alfresco-1.2\tomcat\webapps\alfresco\WEB-INF\classes\alfresco' and there doesn't seem to be such a string.

Is this a bug?

This is probably related to http://forums.alfresco.com/viewtopic.php?t=707&highlight=email.
From the previous topic, it seems fixed and you can get it from the SVN build. How do I apply the 'patch'? (Sorry if this sounds really basic).

Thanks!

Durianwool
5 REPLIES 5

gautham_hegde
Champ in-the-making
Champ in-the-making
As far as I know all custom changes to the web-client can go in your web-client-config-custom.xml file.  If you havent made any changes to the web-client as yet, then you should do a find for web-cleint-config-custom.xml.sample.  this is a sample file that shows you how to do customizations to the web client. rename this file to web-client-config-custom.xml(If you are using tomcat it should be under $TOMCAT_HOME/shared/classes/alfresco/extension), and uncomment the following lines and modify the email.

<!– Example of overriding the from email address –>
   <!–
   <config>
      <client>
         <from-email-address>someone@your-domain.com</from-email-address>
      </client>
   </config>
   –>

hope that helps

durianwool
Champ in-the-making
Champ in-the-making
Hi,

I did changed the web-client file, and it still doesn't work for the purpose above. This is what happens:

For system messages like when I invite/modify a user role changed for space, the sender email address shows the correct modified sender address 'myemail@somewhere.com'.

BUT, for rules as above (when the action is 'send email to user'), the sender email address is ALWAYS 'alfresco_repository@alfresco.org'.

I think this is a bug… Anyone from alfresco reading this?

BR,

Durianwool

gavinc
Champ in-the-making
Champ in-the-making
Hi,

alfresco_repository@alfresco.org is hard coded in MailActionExecutor, which itself is a bug, this should be in a properties file (feel free to raise a bug in JIRA for this so you can track the progress).

However, the from email address is passed in as a parameter to the mail action from the web client which in turn passes in the from address from the config file it sounds like you have changed.

So i'm wondering how the alfresco_repository@alfresco.org ends up being used…did you setup the rule via the web client or directly via the API or via web services?

durianwool
Champ in-the-making
Champ in-the-making
Hi gavin,

Thanks very much.  I've created a Jira entry at http://www.alfresco.org/jira/browse/AWC-632 and you can see the steps to reproduce the problem.

BR,

Durianwool

gavinc
Champ in-the-making
Champ in-the-making
Thanks