Documentation Problems → Alternative to using blat on Windows

Alternative to using blat on Windows

The problem with blat is that you have to setup stunnel to use it with gmail, and that is often problematic. Instead a replacement for it is MailWrench Below is a replacement for the blat batch file at Keep a Record of POPFile's Statistics Over Time page

mail_bucket_stats.bat

wget -O - http://127.0.0.1:8080/buckets >> bucket.html
mailwrench -to ToEmail@to.TLD @m.cfg -s "POPFile Buckets Report" -file bucket.html -html 
# For those that have the GNU Win32 utils installed
# uncomment rm statement and comment/delete del statement
#rm -f bucket.html
del /F /Q bucket.html
cls
@exit

Config file:
m.cfg

-ssl
-smtp smtp.gmail.com
-port 587
-from fromEmail@gmail.com
-id GMAILUsername@gmail.com
-password GMAILPassword