Skip to content
  • Windows
  • Linux
  • Mac
  • Internet
  • Android
  • iOS
  • More
    • Hardware Guides
    • Chrome OS
    • Gadgets
    • How Things Work
    • Product Review
    • Smart Home
    • Gaming
  • About
    • About Us
    • Contact Us
    • Write For Us
    • Advertise with Us
    • Privacy Policy

How to Make Windows Send Email Notifications on User Login

By Vamsi Krishna / Feb 21, 2016 / Windows
How to Make Windows Send Email Notification on User Login

If you are managing multiple user accounts or multiple computers, then getting simple email notifications when a user logs in is a neat way to keep track of login activities. Moreover, it is also a good way to monitor a system that you don’t want others to log into.

Here is how you can make Windows send email notifications when a user logs into a computer.

Make Windows Send Email Notifications on User Login

To make Windows send email notifications when a user logs in, we are going to use a third party program called SendEmail. SendEmail is a simple, portable, and lightweight command line email program that can send emails. Download the application from the official website, and only download the version that supports TLS.

Alternatively, you can also use Blat, but it doesn’t support TLS which is a requirement for almost any major email service like Gmail.

Once you’ve downloaded the file, extract it to someplace like Program Files in the C drive so that other users (if you have any) cannot access it without admin privileges. In my case, I just placed it in my E drive.

send-win-logon-notifications-send-logon-notifications-sendemail-files

Now, search for Task Scheduler in the Start menu and open it.

send-win-logon-notifications-send-logon-notifications-task-scheduler

After opening the Task Scheduler, click on the option “Create Task” in the right pane.

send-win-logon-notifications-send-logon-notifications-create-task

The above action will open the Create Task window. Here, enter the name of the task, description, and select the “Run whether the user is logged on or not” radio button. Don’t save the task yet.

send-win-logon-notifications-send-logon-notifications-create-task-general

Now, navigate to the Triggers tab and click on the “New” button appearing at the bottom of the window to create a new trigger.

In the “New Trigger” window select the option “At log on” from the drop-down menu next to “Begin the task,” and then make sure that the “Any user” radio button has been selected. Once you are done, click on the “Ok” button to save the changes.

send-win-logon-notifications-send-logon-notifications-new-trigger

Now, navigate to the “Actions” tab, and click on the “New” button to add a new action.

In the “New Action” window, enter the SendEmail application path under the “Program or Script” field, and then add the below command as the arguments in the “Add arguments” field.

While adding, don’t forget to replace “yourEmail@gmail.com” with your actual email address and PASSWORD with your actual email account password. If you want to you can also edit the email subject [-u] and the message part [-m].

-f yourEmail@gmail.com -t yourEmail@gmail.com -xu yourEmail@gmail.com -xp PASSWORD -s smtp.gmail.com:587 -o tls=yes -u "System Login Activity" -m "A user logged into your system!"

Note: if you are using other email services, then you also have to change the SMTP server address and the port number.

Here is what the command line options actually mean.

  • -f  – From email address
  • -t – To email address
  • -xu – Username
  • -xp – Email account password
  • -s – SMTP server address with port number
  • -u – Email subject
  • -m – Email body

Once you are done with the changes, click on the “Ok” button to save the changes.

send-win-logon-notifications-send-logon-notifications-task-action

This is how it looks after adding the said action to the task.

send-win-logon-notifications-send-logon-notifications-task-action-created

If you are adding this task to a laptop or something of that sort then you might want to uncheck the “Start the task only if the computer is on AC power” checkbox so that the task can run even when the system is running on battery.

Once you are done with everything, just click on the “Ok” button to complete the procedure.

send-win-logon-notifications-send-logon-notifications-conditions

If you want to test the task, simply select the task in the middle pane of the Task Scheduler, and then click on the “Run” button, and this should send the email.

send-win-logon-notifications-send-logon-notifications-click-run

That’s all there is to do. Every time a user logs into the system, you will receive an email notification (provided that your system is connected to the Internet).

send-win-logon-notifications-send-logon-notifications-notification

Do comment below sharing your thoughts and experiences about using the above method to receive email notifications when someone logs into your system.

Vamsi Krishna Vamsi Krishna

Vamsi is a tech and WordPress geek who enjoys writing how-to guides and messing with his computer and software in general. When not writing for MTE, he writes for he shares tips, tricks, and lifehacks on his own blog Stugon.

Is this article useful?
  • Facebook
  • Tweet

One comment

  1. dan
    Feb 22, 2016 at 9:23 pm

    Just to be clear – this does not have to be a computer that is part of your network; i.e., it can be any computer or any (internet-connected) network in the world – correct?

Comments are closed.

Popular Posts

HoudahSpot 6 Review: A Mac Search Tool Like None Other

Sponsored

How to Check the CPU Temperature in Windows 10

How to Access the WindowsApps Folder in Windows 10

16 Awesome Screensavers for Windows 10

100% CPU Usage in Windows 10? Here's How to Fix it

What You Should Do If Windows 10 Fails to Start

Latest Windows 10 Update Problems and How to Fix Them

Windows Store Not Working? Here's How to Fix it

How to Undervolt Your CPU with Throttlestop in Windows

Windows 10 Start Menu Search Not Working? Here Are Some Fixes

Settings App Not Working in Windows 10? Here Are the Fixes

Affiliate Disclosure: Make Tech Easier may earn commission on products purchased through our links, which supports the work we do for our readers.

Never Miss Out

Receive update of our latest tutorials.

See all newsletters | Privacy Policy

© 2021 Uqnic Network Pte Ltd.
All rights reserved.

  • About
  • Contact
  • Advertise
  • Write For Us
  • Terms of Use
  • Privacy Policy
  • RSS Feed Terms
Do not share my Personal Information