Instead, download SendEmail, a free tool for sending emails from the
command line. With SendEmail, we can write a single command that will
send out an email. SendEmail supports authentication, so we can easily
send email from Gmail’s SMTP server or any other server that requires
authentication.
Creating a Task
First, launch the task scheduler by typing Task Scheduler into your Start menu and pressing Enter.
Click the Create Task link in the sidebar.
On the General pane, provide a name and description for the task. You should also select the Run whether user is logged on or not option.
On the Triggers tab, create a new trigger that begins the task at log on for any user.
On the Actions tab, create a new action that runs the sendemail.exe application. Add arguments like the following:
The above arguments sends an email from from@gmail.com to to@gmail.com. The email’s subject is “Someone Logged Into Your Computer” and its message body is “Someone just logged into your computer!”. The server information is smtp.gmail.com with port 587 – if you’re using a different SMTP server provider, you’ll have to change this. You’ll also have to replace password with your own password.
On the Conditions tab, uncheck Start the task only if the computer is on AC power option or you won’t get emails if your computer is a laptop and it’s unplugged.
Click the OK button and save your task. You should now receive email notifications whenever someone logs into your computer.
Code: http://caspian.dotconf.net/menu/Software/SendEmail/ |
Creating a Task
First, launch the task scheduler by typing Task Scheduler into your Start menu and pressing Enter.
Click the Create Task link in the sidebar.
On the General pane, provide a name and description for the task. You should also select the Run whether user is logged on or not option.
On the Triggers tab, create a new trigger that begins the task at log on for any user.
On the Actions tab, create a new action that runs the sendemail.exe application. Add arguments like the following:
Code: -f from@gmail.com -t to@gmail.com -u Someone Logged Into Your Computer -m Someone just logged into your computer! -s smtp.gmail.com:587 -xu from@gmail.com -xp password -o tls=yes |
The above arguments sends an email from from@gmail.com to to@gmail.com. The email’s subject is “Someone Logged Into Your Computer” and its message body is “Someone just logged into your computer!”. The server information is smtp.gmail.com with port 587 – if you’re using a different SMTP server provider, you’ll have to change this. You’ll also have to replace password with your own password.
On the Conditions tab, uncheck Start the task only if the computer is on AC power option or you won’t get emails if your computer is a laptop and it’s unplugged.
Click the OK button and save your task. You should now receive email notifications whenever someone logs into your computer.
No comments:
Post a Comment