javascript - Creating a join site link for share site in alfresco -


i need sent email notification whenever new site created. created rule in site , made java script execute. here javascript

var parent = space.getparent(); var siteshortname = space.getsiteshortname(); var sitegroup = "group_email_contributors"; var mail = actions.create("mail"); mail.parameters.to_many = sitegroup;  mail.parameters.subject=" new site called" +siteshortname +"is created"; mail.parameters.text="login share join site;  //execute action against document mail.execute(document); 

but getting mail a new site callednullis created‏ in subject. not saying name of site.

how add site name? how add link join site? sending 4 mails instead of one

here rule: enter image description here

i think javascript site services api may you.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -