Website Membership

4 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 30, 2012   (RSS)

By depdesign - June 13, 2012

How can I add two email addresses to receive BCC notification when a user signs up. I'm using 1.05 and also have 1.07. Also, how can i change the email content that is sent. Thanks
Dan Perez

Re: [depdesign] Website Membership

By depdesign - June 13, 2012

Thanks Jason,
That worked!
Dan Perez

Re: [depdesign] Website Membership

By gkornbluth - June 30, 2012 - edited: June 30, 2012

Hi depdesign,

If all of your recipients have user accounts, you might also think about changing the BCC values to a variable ($emailList) that gets populated from user email addresses where there's a "notifications" check box checked in their record.

Just a thought,

Jerry Kornbluth
Here's an untested recipe from my CMSB Cookbook thecmsbcookbook.com that might help.

First add a check box field called notifications to your user account editor.

Then, create your list from the accounts records.
<?php list($emailListRecords,) = getRecords(array(
"tableName" => "accounts",

'where' => "notifications = '1' AND hidden = '0'",
'orWhere' => "notifications = '1' AND hidden = '1'",
));

$emailList = "";

foreach( $emailListRecords as $record ) {

$emailList.= $record['email'] .",";
}
?>

Then use the variable in your sendmail code,

'To' => $emailList,
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php