Title: Login alert by e-mail
Author: Rui Cruz
Published: <strong>Pébruari 16, 2023</strong>
Last modified: Pébruari 16, 2023

---

Search plugins

![](https://ps.w.org/login-alert-by-e-mail/assets/banner-772x250.png?rev=2866721)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/login-alert-by-e-mail/assets/icon-128x128.png?rev=2866721)

# Login alert by e-mail

 By [Rui Cruz](https://profiles.wordpress.org/ruicruzpt/)

[Download](https://downloads.wordpress.org/plugin/login-alert-by-e-mail.zip)

 * [Details](https://su.wordpress.org/plugins/login-alert-by-e-mail/#description)
 * [Reviews](https://su.wordpress.org/plugins/login-alert-by-e-mail/#reviews)
 * [Development](https://su.wordpress.org/plugins/login-alert-by-e-mail/#developers)

 [Support](https://wordpress.org/support/plugin/login-alert-by-e-mail/)

## Description

**TLDR:**
 This is a plugin for WordPress websites that sends email notifications
to the website admin for successful and failed login attempts. The email includes
details like the username, IP address, and browser information.

**Geek description:**
 This WordPress plugin sends email notifications upon successful
and failed logins to the website’s admin. The plugin functions by hooking into the‘
wp_login’ and ‘wp_login_failed’ WordPress actions, and triggering the ‘send_login_notification’
and ‘send_login_failed_notification’ functions respectively.

The ‘send_login_notification’ function sends an email to the admin email address
specified in the ‘admin_email’ option. The email includes details such as the successful
login username, IP address, and browser information. The ‘send_login_failed_notification’
function sends a similar email to the admin, but for failed login attempts.

The plugin uses the wp_mail function to send the emails, and the messages are formatted
as HTML for easy readability. The plugin ensures that the data being displayed, 
such as the username and IP address, is escaped using PHP’s built-in escape functions.
This is done to prevent potential security vulnerabilities, such as XSS (Cross-Site
Scripting).

In summary, this plugin provides an easy way for website administrators to stay 
informed of user login activity on their site, while also ensuring that sensitive
information is displayed securely.

## FAQ

### Will I get many e-mails?

The frequency of emails you receive will depend on the login activity on your website.
For every successful or failed login, an email notification will be sent to the 
website administrator. If you have a high volume of login activity, you may receive
a higher volume of emails. You can adjust the notification settings in the code 
or turn off the plugin if desired.

### Is the email format easily readable?

Yes, the emails are formatted as HTML for easy readability.

### Who receives the emails?

The emails are sent to the admin email address specified in the ‘admin_email’ option.

### Is sensitive information displayed securely?

Yes, the plugin uses PHP’s built-in escape functions to secure sensitive information,
such as the username and IP address, to prevent potential security vulnerabilities.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Login alert by e-mail” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Rui Cruz ](https://profiles.wordpress.org/ruicruzpt/)

“Login alert by e-mail” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/login-alert-by-e-mail/contributors)
for their contributions.

[Translate “Login alert by e-mail” into your language.](https://translate.wordpress.org/projects/wp-plugins/login-alert-by-e-mail)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/login-alert-by-e-mail/),
check out the [SVN repository](https://plugins.svn.wordpress.org/login-alert-by-e-mail/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/login-alert-by-e-mail/)
by [RSS](https://plugins.trac.wordpress.org/log/login-alert-by-e-mail/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

Initial version released

## Meta

 *  Version **1.0**
 *  Last updated **3 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.1.10**
 *  PHP version ** 7.0 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/login-alert-by-e-mail/) and [Portuguese (Portugal)](https://pt.wordpress.org/plugins/login-alert-by-e-mail/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/login-alert-by-e-mail)
 * Tags
 * [alert](https://su.wordpress.org/plugins/tags/alert/)[email](https://su.wordpress.org/plugins/tags/email/)
   [login](https://su.wordpress.org/plugins/tags/login/)[Login Alert](https://su.wordpress.org/plugins/tags/login-alert/)
 *  [Advanced View](https://su.wordpress.org/plugins/login-alert-by-e-mail/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/login-alert-by-e-mail/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/login-alert-by-e-mail/reviews/)

## Contributors

 *   [ Rui Cruz ](https://profiles.wordpress.org/ruicruzpt/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/login-alert-by-e-mail/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/paypalme/ruicruzpt)