Guest User

Untitled

a guest
Oct 18th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. @echo off
  2.  
  3. ::boot notice
  4. :: change these setting
  5. set uid=yourname@gmail.com
  6. set upw=yourpass
  7. set from=yourname@gmail.com
  8. set to=yourname@gmail.com
  9. set title="Boot Notice"
  10. set emailclient="D:\tasks\sendEmail.exe"
  11.  
  12. :: dont change these setting
  13. set smtp=smtp.gmail.com:587
  14. FOR /F "usebackq" %%i IN (`hostname`) DO SET host=%%i
  15. set msg="%host% at %date% %time%"
  16.  
  17. ::start email
  18. %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