05-29-2019, 09:55 AM
Ok. So on the first thing, the / is missing because it's not in your site url when you go to settings->email settings in the dashboard. This isn't your fault at all because the one that's in there as a demo doesn't have a / on it, but the tooltip shows it. Let me do a bug report for that.
As far as the email when someone registers, right now, you would have to do it in the usersc/scripts/during_user_creation.php file
If you go into users/views you will see a bunch of _email templates in there. You can copy one for your template
Then you would just do
Params is whatever variables you might want access to in the email. You could just do an empty array if you don't want to customize the email on every join.
$params = array(
'username' => $userdetails->username,
'sitename' => $settings->site_name,
'fname' => $userdetails->fname,
'email' => rawurlencode($userdetails->email),
'vericode' => $userdetails->vericode,
'reset_vericode_expiry' => $settings->reset_vericode_expiry
);
$to = rawurlencode("you@you.com);
$subject = 'Password Reset';
$body = email_body('_email_adminPwReset.php',$params);
email($to,$subject,$body);
As far as the email when someone registers, right now, you would have to do it in the usersc/scripts/during_user_creation.php file
If you go into users/views you will see a bunch of _email templates in there. You can copy one for your template
Then you would just do
Params is whatever variables you might want access to in the email. You could just do an empty array if you don't want to customize the email on every join.
$params = array(
'username' => $userdetails->username,
'sitename' => $settings->site_name,
'fname' => $userdetails->fname,
'email' => rawurlencode($userdetails->email),
'vericode' => $userdetails->vericode,
'reset_vericode_expiry' => $settings->reset_vericode_expiry
);
$to = rawurlencode("you@you.com);
$subject = 'Password Reset';
$body = email_body('_email_adminPwReset.php',$params);
email($to,$subject,$body);