Skip to content

Instantly share code, notes, and snippets.

@emisjerry
Created August 14, 2022 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 your-email@yourmail.com 5 -u userid -pw password
if "%1"=="" goto USAGE
rem copy "%1" book1.epub /y
blat - -to your-kindle@kindle.com -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