Questions tagged [blat]

Blat is a Win32 command line utility that sends eMail using SMTP or post to usenet using NNTP.

The official site is http://blat.net. The current version (as of Oct 22 2010) is v2.6.2 and was released Feb 25 2007. The license is located at http://blat.net/?docs/license.txt. Below is a quote from the license.

The authors of Blat have placed it in the public domain. This means you can use it free of charge for any purpose you like, with nearly no conditions being placed on its use by us. The source code is also available free of charge and under the same conditions as the executables.

It was first released in October 1998.

53 questions
24
votes
6 answers

PowerShell: remove or replace quote marks from variable

I'm using Get-EventLog to set a variable, and then setting another variable with the event ID description. I then use blat.exe to email this information to a group. The description contains quotation marks. The quotation marks are causing blat to…
Pat
  • 1,173
  • 5
  • 19
  • 44
4
votes
3 answers

How can I send an email from the command line using blat when the body contains carriage returns and line feeds?

I have a windows server which sends emails to me through a BASIC program. If the message body contains carriage returns/line feeds then the email never finishes. Only the first line is sent to me. I tried replacing them with \n but that didn't…
Mike Roosa
  • 4,752
  • 11
  • 40
  • 52
3
votes
2 answers

Html Email Body using Batch and Blat.exe

I have been playing around with trying to send an email using batch/blat.exe Sending the email is the easy part; the tricky part is sending the body as a Html message. Set EmailBody="htmlPath\file.html" set to=-to to@Email.com set f=-f…
ricky89
  • 1,326
  • 6
  • 24
  • 37
3
votes
4 answers

How can I send a .pdf file as blat attachment?

I try to send a mail with an attachment with blat (with the Shell command of Access VBA). All works fine while I try to send a .txt file blat ... -attach c:\mydir\myfile.txt but if I try to send a .pdf file, with the same command blat ...…
Davide
  • 111
  • 1
  • 1
  • 6
2
votes
2 answers

Batch file, removing double quote but giving blank .txt

My goal is to remove the double quote and send resource of .txt file as body mail through blat, I've seen a lot of question regarding this(removing double quotes).. but I can't figure out, where am I doing wrong. Here is my code set "now=%date:~4%"…
anub13
  • 69
  • 1
  • 9
2
votes
1 answer

Batch file to detect failure in a log file and then email?

I don't know if a batchfile is a proper solution to this problem, but I'll describe what I need to do and what I've done so far. I use a batch file triggering Robocopy and then Blat to send logfiles of a daily file copy task to a target address. …
2
votes
2 answers

Pass powershell variable to batch script

Here is powershell script $a = get-date -format "MMM-d-yyyy" Start-Process "D:\Script\send_report.bat" send_report.bat uses blat to send email D: cd "D:\Program Files (x86)\blat321\full" blat -s "Daily Report" -i "Our Team" -to…
Glowie
  • 2,271
  • 21
  • 60
  • 104
2
votes
2 answers

Windows scripting to email using TLS

I'm trying to make an SVN post-commit script that makes backups to a Gmail drive. Blat doesn't seem to support TLS. Are there any good scripting programs on windows that can send an email via TLS?
Adam Tegen
  • 25,378
  • 33
  • 125
  • 153
2
votes
2 answers

Batch file: Blat sending 2 emails not 1

first time I've used blat and it appears to work fine however its sending two emails for every email I intend to send. Script excerpt is below: ::If we have a problem we email from here CALL :checkForFailures :checkForFailures IF EXIST %ERROR_FILE%…
sapatos
  • 1,292
  • 3
  • 21
  • 44
1
vote
4 answers

Send email from a batch script. Blat doesn't work

I need to send an email from a batch script. I tried several solutions without success. For example, with Blat: :send_mail "\Program Files (x86)\blat275\full\blat.exe" -server smtp.gmail.com -port 525 -f myAdress@gmail.com -to…
GG.
  • 21,083
  • 14
  • 84
  • 130
1
vote
1 answer

output to send email notification if the URL is not live

Using CURL command output to send email notification. I have a below code which will check multiple URLs from a txt file as a input parameter and send the output as a email notification if it is failing. But my code is not sending mails for the…
Santosh Kumar
  • 53
  • 1
  • 10
1
vote
2 answers

Blat doesn't send email when run from Windows scheduler

Can you please help me on a BLAT issue ? I have a batch file where I use BLAT utility to send emails using SMTP server. When I run same batch file from a dos shell manually, the email is sent properly. But when I schedule the batch file to run from…
Jamil Rahman
  • 345
  • 1
  • 6
  • 18
1
vote
0 answers

problems with sending email thro blat via gmail

stunnel -install -quiet stunnel -start -quiet rem 7z a archive.7z @listfile.txt blat -body "..." -server localhost:587 -f thisisayndctest@gmail.com -to thisisayndctest@gmail.com -u thisisayndctest@gmail.com -pw genius -attach listfile.txt stunnel…
junkone
  • 1,427
  • 1
  • 20
  • 45
1
vote
1 answer

Sending email works via Thunderbird but not blat. Any ideas why?

I can send an email using Thunderbird. I use the same smtp server address when installing blat. But, blat does not send the email. I get the following error: Error: Server refused connection. Any ideas on how to fix this?
zooropa
  • 3,929
  • 8
  • 39
  • 61
1
vote
1 answer

blat command to mail the report to the given mail ID

One of our report is using blat command to mail the report to the given mail ID. The first step produces the PDF file and saves it in the server (this step is working fine). The second step uses the blat services to send the PDF to given mail…
Black Eagle
  • 1,107
  • 2
  • 11
  • 18
1
2 3 4