Saturday, August 13, 2011

Adding Multiple email responses to new data added in BB2.0

If you are familiar with the bbsetting_email_onadd setting for BlueBox2.0, you may be interested to know that you can set multiple arrays which send different results to various recipients, as follows:

In a .php file, use the following:

var $bbsetting_email_onadd=array(
array("to"=>"some@user.com","bcc"=>"","
from"=>"admin@domain.com","subject"=>"Subject One","template"=>"email_one"),
array("to"=>"some_other_user@domain.com","bcc"=>"","from"=>"admin@domain.com","subject"=>"Subject Two","template"=>"email_two")
);
 
or if you are editing within Admin->module settings, you can enter nested arrays as follows:
 
{to=admin@site.com,from=some@domain.com,subject=Subject One for Admin Email,template=name_of_email_
template_for_admin,}
{to=user@site.com,from=some@domain.com,subject=Subject Two for User Email ,template=name_of_email_template_for_user,}



No comments:

Post a Comment