Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- ::boot notice
- :: change these setting
- set uid=yourname@gmail.com
- set upw=yourpass
- set from=yourname@gmail.com
- set to=yourname@gmail.com
- set title="Boot Notice"
- set emailclient="D:\tasks\sendEmail.exe"
- :: dont change these setting
- set smtp=smtp.gmail.com:587
- FOR /F "usebackq" %%i IN (`hostname`) DO SET host=%%i
- set msg="%host% at %date% %time%"
- ::start email
- %emailclient% -f %from% -s %smtp% -xu %uid% -xp %upw% -t %to% -u %title% -o message-charset=big5 -m %msg%
Add Comment
Please, Sign In to add comment