The following warnings occurred: | ||||||||||||||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
e-mail not verifying - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.4 (https://userspice.com/forums/forumdisplay.php?fid=27) +--- Thread: e-mail not verifying (/showthread.php?tid=1502) |
RE: e-mail not verifying - LBC - 05-29-2019 Ah yes, that does make sense Thanks! However...the details are not showing up in the e-mail that is sent to me. I have this: <p>You just got a new user on <?=$sitename?>.</p> <p>First name:<?=$fname?></p> <p>Last name: <?=$lname?></p> <p>e-Mail: <?=$email?></p> <p> $params = array( 'sitename' => $settings->site_name, 'fname' => $userdetails->fname, 'lname' => $userdetails->lname, 'email' => rawurlencode($userdetails->email), ); RE: e-mail not verifying - mudmin - 05-29-2019 Is this... $params = array( 'sitename' => $settings->site_name, 'fname' => $userdetails->fname, 'lname' => $userdetails->lname, 'email' => rawurlencode($userdetails->email), ); In the view in the usersc/scripts/during_user_creation? RE: e-mail not verifying - LBC - 05-29-2019 yes, and the other bit is in the _email_newuser.php the whole thing: $params = array( 'sitename' => $settings->site_name, 'fname' => $userdetails->fname, 'lname' => $userdetails->lname, 'email' => rawurlencode($userdetails->email), ); $to = rawurlencode("my@email.com"); $subject = 'New Registration!'; $body = email_body('_email_newuser.php',$params); email($to,$subject,$body); RE: e-mail not verifying - LBC - 06-03-2019 Did you happen to have an idea why the above wont give me any of the details in that mail? RE: e-mail not verifying - mudmin - 06-05-2019 Sorry. I've been out of the office and will be a good bit this week. Before you call that function can you do dnd($userdetails); to make sure that variable is set properly? RE: e-mail not verifying - LBC - 06-05-2019 Like this? dnd($userdetails); $params = array( 'sitename' => $settings->site_name, 'fname' => $userdetails->fname, 'lname' => $userdetails->lname, 'email' => rawurlencode($userdetails->email), ); $to = rawurlencode("my@email.com"); $subject = 'New Registration!'; $body = email_body('_email_newuser.php',$params); email($to,$subject,$body); RE: e-mail not verifying - mudmin - 06-05-2019 yes RE: e-mail not verifying - LBC - 06-05-2019 when i send the registration form it does go into the database, but the page says : Notice: Undefined variable: userdetails in /www/usersc/scripts/during_user_creation.php on line 28 NULL Line 28 being that line we just added. And only the registrant gets an email. $db->update('users',$theNewId,['phone'=>Input::get('phone')]); $db->update('users',$theNewId,['challenges'=>Input::get('challenges')]); $db->update('users',$theNewId,['membership'=>Input::get('membership')]); $db->update('users',$theNewId,['orig_chos_day'=>Input::get('orig_chos_day')]); $db->update('users',$theNewId,['message'=>Input::get('message')]); $db->update('users',$theNewId,['ecname'=>Input::get('ecname')]); $db->update('users',$theNewId,['ecphone'=>Input::get('ecphone')]); dnd($userdetails); $params = array( 'sitename' => $settings->site_name, 'fname' => $userdetails->fname, 'lname' => $userdetails->lname, 'email' => rawurlencode($userdetails->email), 'phone' => $userdetails->phone, ); $to = rawurlencode("my@mail.com"); $subject = 'New Registration!'; $body = email_body('_email_newuser.php',$params); email($to,$subject,$body); RE: e-mail not verifying - LBC - 06-12-2019 Hope you had a nice trip Mudmin Did you happen to have an idea what is causing this? RE: e-mail not verifying - LBC - 06-28-2019 Mudmin? I've been tinkering with this code myself for a while now, but i'm not getting anywhere. If you have some time, could you please have another look? |