Mail settings implemented
This commit is contained in:
@ -36,7 +36,11 @@ class SaveRegistration {
|
||||
wp_mail($user->user_email, 'Bitte bestätige deine Anmeldung', 'Hallo, bitte bestätige deine Anmeldung über den folgenden Link: ' . $activation_link);
|
||||
|
||||
// Notify admin
|
||||
wp_mail(get_option('admin_email'), 'New User Registration', 'A new user has registered: ' . $user->user_login . PHP_EOL . 'First name:' . $user->first_name . PHP_EOL . 'Last name:' . $user->last_name );
|
||||
wp_mail(get_option('admin_email'), 'New User Registration', 'A new user has registered: ' . PHP_EOL .
|
||||
'Username: ' . $user->user_login . PHP_EOL .
|
||||
'First name: ' . $user->first_name . PHP_EOL .
|
||||
'Last name: ' . $user->last_name . PHP_EOL .
|
||||
'E-Mail: ' . $user->user_email);
|
||||
}
|
||||
|
||||
public static function activate_user() {
|
||||
@ -72,5 +76,19 @@ class SaveRegistration {
|
||||
<p style="font-size:16px; color:#00796b;">Vielen Dank für deine Registrierung. Bitte überprüfen deine E-Mails, um deine Registrierung zu bestätigen.</p>
|
||||
</div>';
|
||||
}
|
||||
|
||||
if ((isset($_GET['action']) && $_GET['action'] === 'laostpassword') ||
|
||||
isset($_GET['checkemail']) && $_GET['checkemail'] === 'confirm'
|
||||
){
|
||||
echo '<div class="custom-message" style="text-align:center; margin:20px auto; padding:10px; background-color:#e0f7fa; border:1px solid #00796b; border-radius:5px; max-width:600px;">
|
||||
<p style="font-size:16px; color:#00796b;">Insofern der Account existiert, hast du soeben weitere Anweisungen per E-Mail erhalten.</p>
|
||||
</div>';
|
||||
}
|
||||
|
||||
if (isset($_GET['action']) && $_GET['action'] === 'resetpass') {
|
||||
echo '<div class="custom-message" style="text-align:center; margin:20px auto; padding:10px; background-color:#e0f7fa; border:1px solid #00796b; border-radius:5px; max-width:600px;">
|
||||
<p style="font-size:16px; color:#00796b;">Dein Passwort wurde erfolgreich geändert.</p>
|
||||
</div>';
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user