The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
e-mail not verifying
#20
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?
  Reply


Messages In This Thread
e-mail not verifying - by LBC - 05-27-2019, 07:06 AM
RE: e-mail not verifying - by mudmin - 05-29-2019, 09:55 AM
RE: e-mail not verifying - by LBC - 05-29-2019, 10:09 AM
RE: e-mail not verifying - by mudmin - 05-29-2019, 10:13 AM
RE: e-mail not verifying - by LBC - 05-29-2019, 10:20 AM
RE: e-mail not verifying - by mudmin - 05-29-2019, 10:26 AM
RE: e-mail not verifying - by LBC - 05-29-2019, 10:45 AM
RE: e-mail not verifying - by mudmin - 05-29-2019, 10:45 AM
RE: e-mail not verifying - by LBC - 05-29-2019, 10:48 AM
RE: e-mail not verifying - by mudmin - 05-29-2019, 10:49 AM
RE: e-mail not verifying - by LBC - 05-29-2019, 10:51 AM
RE: e-mail not verifying - by mudmin - 05-29-2019, 10:52 AM
RE: e-mail not verifying - by LBC - 05-29-2019, 10:57 AM
RE: e-mail not verifying - by mudmin - 05-29-2019, 10:58 AM
RE: e-mail not verifying - by LBC - 05-29-2019, 11:01 AM
RE: e-mail not verifying - by mudmin - 05-29-2019, 11:01 AM
RE: e-mail not verifying - by LBC - 05-29-2019, 11:03 AM
RE: e-mail not verifying - by mudmin - 05-29-2019, 11:04 AM
RE: e-mail not verifying - by LBC - 05-29-2019, 11:13 AM
RE: e-mail not verifying - by mudmin - 05-29-2019, 11:19 AM
RE: e-mail not verifying - by LBC - 05-29-2019, 11:38 AM
RE: e-mail not verifying - by mudmin - 05-29-2019, 11:53 AM
RE: e-mail not verifying - by LBC - 05-29-2019, 11:55 AM
RE: e-mail not verifying - by LBC - 06-03-2019, 06:39 AM
RE: e-mail not verifying - by mudmin - 06-05-2019, 10:36 AM
RE: e-mail not verifying - by LBC - 06-05-2019, 10:43 AM
RE: e-mail not verifying - by mudmin - 06-05-2019, 11:10 AM
RE: e-mail not verifying - by LBC - 06-05-2019, 11:37 AM
RE: e-mail not verifying - by LBC - 06-12-2019, 10:20 AM
RE: e-mail not verifying - by LBC - 06-28-2019, 06:18 AM
RE: e-mail not verifying - by mudmin - 07-09-2019, 03:45 PM
RE: e-mail not verifying - by LBC - 07-10-2019, 11:34 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)