How to report user login attempts in the Windows 10 Mail app

Who I am
Philippe Gloaguen

Author and references

Suppose you manage multiple email accounts. For example, one for your university activities, one for official purposes, and one created simply for sharing fun with friends. You can open them on different computers at different times to keep track of your emails. But it is a hectic task to remember which accounts were started, at what time and on which machines. Also, you need to keep your email safe from prying spies. In such cases, wouldn't it be great if your Windows system notifies you every time someone logs into your account?

See also: How to turn on email notifications with audio in Windows 10

Let me explain the steps you need to take to accomplish this. Before that, let's take a quick look at what SendMail is.

SendMail is a lightweight command line email program capable of sending email messages and notifications. It is a general purpose email routing utility that supports a wide range of mail transfer protocols, such as Simple Mail Transfer Protocol (SMTP) and corresponding delivery methods.



  • This will make use of a program Send a mail to download. You can download it from here - Send an email. What sets SendMail apart from all other programs of this type is that it uses Transport Layer Security (TLS). This maintains privacy when your email is sent over the communication network and protects it from unauthorized agents.


  • Extract the file you just downloaded to a safe place. It must be somewhere that no other person can access it directly and it must have administrator privileges.

I extracted it to my S drive as shown in the screenshot above.


  • Open the Event Agenda by searching for it in the Start menu. Click on the option Create activity in the right pane of the window that opens.


  • In the new window that appears, name the task you create, add a new description and click the radio button that appears to the left of the option Run if the user is logged in or not.


  • Now go to trigger option that appears as the second tab in the top menu. Click on the New option that appears below.


  • In the window called New Trigger that appears, choose the option When you log in by selecting it from the drop-down menu next to The task begins.
  • Select the radio button before the option Any user under the settings Tab.


  • Now go to Behavior Tab and click New button. In the window that appears as shown below, enter the path of your SendEmail application next to Programs or scripts campaign and type the command as below in the text box next to Add topics countryside.

-F [email protected] -t [email protected] -xu [email protected] -xp PASSWORD -s -o tls = yes -u "System access activity" -m "A user is connected to your system! "

In the above command, replace the [email protected] file with your email address and PASSWORD with the real password of your account.

Here -f, -t, -xu, -xp, -s, -u, -m refer respectively to the sender's address, address, username, account password, SMTP address, l 'subject and body of the e-mail.

Click the OK button when finished.


  • Go to the Condition tab at the top and uncheck the option Start the task only if the computer has AC power.. This allows you to receive notifications even if the PC is running on battery.
  • Click on all right once the whole procedure is finished.

From now on, it notifies you whenever a login attempt occurs.

add a comment of How to report user login attempts in the Windows 10 Mail app
Comment sent successfully! We will review it in the next few hours.