You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be so good if it could be an option för admins to get a notification as soon as someone conferms their registation. Could this be added?
Thanks for a great plugin.
The text was updated successfully, but these errors were encountered:
<?php /*** Send out email when user is created via LoginRegister Module ***/
$wire->addHookBefore('LoginRegister::createdUser', function($event) {
$u = $event->arguments[0];
$confirmURL = $this->wire('pages')->get("/")->httpUrl() . "manager/access/users/";
$mail = WireMail();
$mail->subject(__("New user registration")); // E-Mail subject for email to administator when user registerd
$mail->to(array("[email protected]"));
$body = "<p>".__("A new user has finished the registration process.")."</p>"; // E-Mail body for email to administator when user registerd
$link = "<p><a href=\"$confirmURL\">Open user management</a>";
$mail->body(strip_tags($body). "\n\n$confirmURL");
$mail->bodyHTML($body.$link);
return $mail->send();
});
But yes, I agree with you, that it would be nice to have such a functionality build in.
It would be so good if it could be an option för admins to get a notification as soon as someone conferms their registation. Could this be added?
Thanks for a great plugin.
The text was updated successfully, but these errors were encountered: