Link to home
Start Free TrialLog in
Avatar of rvfowler2
rvfowler2Flag for United States of America

asked on

Problem Sending Emails with BLAT

Anyone familiar with the command line email program BLAT? We had it set up on our previous server (SBS 2003), and after installing it on the new one (2008), it refuses to work. I set it up with the following command:

blat -install exchange_server_name.united.local email@domain.com

Then, when I want to use the program, I call:

blat -body " body text” -s "subject" -to recipient  -from sender -attach “attachment”

This results in an error:
"The SMTP server does not like the sender name.
Have you set your mail address correctly?
Error: Connection to server was dropped."

I try -installing with any email address on our server, and this happens.
ASKER CERTIFIED SOLUTION
Avatar of TheCleaner
TheCleaner
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This works on my 2008R2 server:

blat -body " body text”  -server SMTPmailservername -f sender  -to recipient -attach “attachment”
and make sure that unauthenticated SMTP is allowed to your SMTP relay (if you have one)

if you do not have SMTP relay server set-up then this will work (will not work on an exchange server): blat -body " body text”  -server SMTPmailservername -f sender  -to recipient -attach “attachment”

I found a 64-bit version of Blat that someone had tweaked a few months back but cannot locate it now. If all else fails, try to download a 64-bit version.

to test, cd to the folder with blat, create a test file with some content and do this:
type  | blat.exe ./test_text_file.txt -server SMTP_server -f from_address -to to_address -s "Subject Text here"
Avatar of rvfowler2

ASKER

As it turns out, you indirectly led me to the solution. After more research, I found that BLAT actually has parameters for authentication, so I used that method successfully.