Guest User

Untitled

a guest
Aug 19th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. Send email by batch, Blat doesn't work
  2. :send_mail
  3. "Program Files (x86)blat275fullblat.exe"
  4. -server smtp.gmail.com
  5. -port 525
  6. -f myAdress@gmail.com
  7. -to recipient@foomail.com
  8. -s "hello"
  9. -body "world"
  10.  
  11. SET to=myEmail@gmail.com,myOtherEmail@gmail.com
  12.  
  13. SET server=127.0.0.1
  14. SET port=25
  15. SET from=bot@foo.com
  16. SET subject="BACKUP PROBLEM"
  17.  
  18. SET year=%DATE:~6,4%
  19. SET month=%DATE:~3,2%
  20. SET day=%DATE:~0,2%
  21. SET today=%year%-%month%-%day%
  22.  
  23. "Program Files (x86)blat275fullblat.exe" -server %server% -port %port% -f %from% -to %to% -html -s %subject% -body "%today%: bla bla bla"
Add Comment
Please, Sign In to add comment