05-29-2019, 11:19 AM
Awesome. Glad it is working.
Don't worry about the views thing being in users. That feature dates back to UserSpice 2.0, so all email views are just stored in that folder.
So, to include more info in your email, 2 things need to happen.
1. You have to add the variables that you want to add in that params array. You can see the full example in one of the earliest messages in this thread, but for instance, if you want the email, you can add this to $params.
'email' => rawurlencode($userdetails->email),
2. Then, whatever is on the left side of the array is the variable name inside the email, so we just added 'email' which means you change the body of users/views/_email_newuser.php to something like
<p>You just got a new user on <?=$sitename?>. Their email address is <?=$email?></p>
Make sense?
Don't worry about the views thing being in users. That feature dates back to UserSpice 2.0, so all email views are just stored in that folder.
So, to include more info in your email, 2 things need to happen.
1. You have to add the variables that you want to add in that params array. You can see the full example in one of the earliest messages in this thread, but for instance, if you want the email, you can add this to $params.
'email' => rawurlencode($userdetails->email),
2. Then, whatever is on the left side of the array is the variable name inside the email, so we just added 'email' which means you change the body of users/views/_email_newuser.php to something like
<p>You just got a new user on <?=$sitename?>. Their email address is <?=$email?></p>
Make sense?