Skip to content

Instantly share code, notes, and snippets.

@emisjerry
Created August 14, 2022 09:21
Show Gist options
  • Save emisjerry/7d43f2d9dfa7d4589e166fb6683744ff to your computer and use it in GitHub Desktop.
Save emisjerry/7d43f2d9dfa7d4589e166fb6683744ff to your computer and use it in GitHub Desktop.
Using blat mail .epub to Kindle mail address
@echo off
rem blat -install SMTP-Server [email protected] 5 -u userid -pw password
if "%1"=="" goto USAGE
rem copy "%1" book1.epub /y
blat - -to [email protected] -s "%1" -body "%1" -log blat.log -force8bit -charset utf-8 -unicode -attach "%1"
type blat.log
goto END
:USAGE
echo mail.bat book.epub
:END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment