Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What is the easiest way from a Windows server to send an email notification?

I need simple program or script to email a user for 2 different scripts I need to create. I do not have a scripting language preference.

One script will needs to send an email notification when their password is about to expire. The other script needs to email a user the password for a generic account on weekly basis.

share|improve this question
add comment

2 Answers

up vote 7 down vote accepted

Have a look at Blat and this example on how to run it from a batch file. Also nice is that it's a standalone utility that doesn't require installation.

share|improve this answer
    
Ya' know, I was going to mention blat but decided I'd get laughed at for not using some fancy PowerShell-based thing. I love blat, and use it frequently. –  Evan Anderson Oct 21 '10 at 18:38
add comment

Assuming you have an email server on your network that this server can reach

TechNet Script Center Repository

Just replace "smarthost" with the name of the email server

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.