Discussion Locked

automating iis smtp service

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

when emailing a large email list using the iis smtp service, is there a way to schedule stopping/starting the service automatically every e.g. 2 hrs or so?
Thank you.

3 replies

by jordana

use the net stop and net start commands in a batch file. Then use the scheduler to schedule running the batch file every two hours.

--
REM Name: smtpbounce.bat
REM Description: stops and starts the SMTP
REM service on the machine it is run on
REM Usage: require wait.exe from reskit.
REM schedule using the scheduler service

net stop smtpsvc
wait 30
net start smtpsvc

---

Jordan

This discussion is closed to new replies.