Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Send email by batch, Blat doesn't work
- :send_mail
- "Program Files (x86)blat275fullblat.exe"
- -server smtp.gmail.com
- -port 525
- -f myAdress@gmail.com
- -to recipient@foomail.com
- -s "hello"
- -body "world"
- SET to=myEmail@gmail.com,myOtherEmail@gmail.com
- SET server=127.0.0.1
- SET port=25
- SET from=bot@foo.com
- SET subject="BACKUP PROBLEM"
- SET year=%DATE:~6,4%
- SET month=%DATE:~3,2%
- SET day=%DATE:~0,2%
- SET today=%year%-%month%-%day%
- "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