Post by 'Chip' ***@att.net [blat] Post by ***@gmail.com [blat]
Have been using BLAT for years; upgraded to the most recent version of v3219 and binary files are being sent as an encoded file under the filename (TEST.XLS and it is still an encoded text file)
I have not changed any parameters, and obviously something has changed over the versions over the years.
I had a very quick look, but nothing blatantly obvious that stands out.
Assume that this would be a very common issue with everyone that has upgraded from early to the current version, and perhaps it is a common question&answer on here over past pages,
Could someone please advise of the necessary parameters required to send a binary file?
Sorry for the long delay seeing this message, I did not notice it in my emails to let it be posted.
Binary files should be sent as attachments, with perhaps a short text message as the body. Which version were you using that seemed to work for you before trying version 3.2.19?
I will run a similar test in a moment with various versions to look for any differences.
Ok, I ran a test with version 3.2.19 with a spreadsheet, like you listed. Below is the email that was sent, with the middle snipped to keep it short. My command line is also below.
Since Blat relies on Windows registry to get file types, it might be that your registry indicates .xls files are text, or it may not have an entry for file extensions of .xls. Alternatively, there are at least three possible culprits for manipulating your incoming email: your email client program, your company server, and your antivirus program.
x64\Release\blat.exe "..\Test_Files\Red Cross donations.xlsx" -base64 -to myself -s "binary file as message body" -p smtp4dev -log R:\blat.log
Date: Sat, 22 Sep 2018 08:42:21 -0600
From: Chip <***@att.net>
To: Chip <***@att.net>
X-Mailer: Blat v3.2.19, a Win32 SMTP/NNTP mailer http://www.blat.net
Subject: binary file as message body
This is a multi-part message in MIME format.
name="Red Cross donations.xlsx"
filename="Red Cross donations.xlsx"