AnsweredAssumed Answered

Creating a email notification when a new site is created

Question asked by samnaction on Mar 24, 2014
Latest reply on Mar 24, 2014 by sanket
Whenever a new site is created the user has to get an email notification as " A new site named sample is created. Click this link to join the site"
I tried to create a rule and execute a script when a particular site is created

var parent = space.getParent();
var siteShortName = space.getSiteShortName();
var mail = actions.create("mail");
mail.parameters.to_many = siteGroup;

mail.parameters.subject=" A new site called" +siteShortName +"is created";
mail.parameters.text="Login to share to join the site;

//execute action against a document

But I am getting the mail as "A new site callednullis created" as subject. It is not showing the site name instead it saying null