I see you're still using 2.0.6. That's not the right place to put that code. You want to look further up in the code, in sub add. Insert it right before line:
so, it's something like:
if ($CFG->{email}->{notify_admin}) {
$cgi->{userid} = $id->{$p . 'users.userid'};
GMail::NoAuth::Join->notify_admin($cgi);
}
Adrian
Code:
GMail::NoAuth::Join->notify_admin($cgi);Code:
# Send them and email if we are doing email validation if ($CFG->{email}->{notify_admin}) {
$cgi->{userid} = $id->{$p . 'users.userid'};
GMail::NoAuth::Join->notify_admin($cgi);
}
Adrian