Discussion:
Blat -pw stored in registry not working
s***@att.net
2013-03-19 18:30:21 UTC
Permalink
I'm a new Blat user working with v3.1.1. After some initial struggles with Blat & stunnel, I've got it working using all command line parms. I then used -SaveSettings to store sender info in the registry and started to get Auth failures from gmail.com. I set up the default profile with:

blat -SaveSettings -f ***@gmail.com -server 127.0.0.1 -profile - -u "***@gmail.com" -pw mypassword

Entering:
blat -profile
returns:
Profile(s) for all users of this computer --
SMTP: 127.0.0.1 "***@gmail.com" 1 25 ***** *****

When I do:
blat xxx.txt -to ***@somewhere.com -s "Test"
I get:
*** Warning *** The SMTP server did not accept Auth PLAIN value.
*** Warning *** Are your login userid and password correct?
*** Warning *** The SMTP server did not accept Auth LOGIN PASSWD value.

but if I do:
blat xxx.txt -to ***@somewhere.com -s "Test" -pw mypassword
it works!! (In other words, using ALL parms stored in registry except for overriding password on the command line)

I have tried -pw=mypassword, -pw "mypassword" -pw="mypassword" to store the password in the registry to no avail.

Any ideas ??
e
Chip
2013-03-20 01:57:09 UTC
Permalink
Post by s***@att.net
I'm a new Blat user working with v3.1.1. After some initial struggles
with Blat & stunnel, I've got it working using all command line parms. I
then used -SaveSettings to store sender info in the registry and started
blat -profile
Profile(s) for all users of this computer --
*** Warning *** The SMTP server did not accept Auth PLAIN value.
*** Warning *** Are your login userid and password correct?
*** Warning *** The SMTP server did not accept Auth LOGIN PASSWD value.
it works!! (In other words, using ALL parms stored in registry except for
overriding password on the command line)
I have tried -pw=mypassword, -pw "mypassword" -pw="mypassword" to store
the password in the registry to no avail.
Any ideas ??
e
I just tried your command line and compared the registry keys to what they
should have been, everything matched, including the password. My suggestion
is that you try your -SaveSettings again, ensuring the password is keyed
properly.

One question I have, does your password have any special characters or
non-ASCII characters? If yes, you might have to put your password in
quotation marks (").
--
Chip
s***@att.net
2013-03-20 02:18:25 UTC
Permalink
Post by Chip
Post by s***@att.net
I'm a new Blat user working with v3.1.1. After some initial struggles
with Blat & stunnel, I've got it working using all command line parms. I
then used -SaveSettings to store sender info in the registry and started
blat -profile
Profile(s) for all users of this computer --
*** Warning *** The SMTP server did not accept Auth PLAIN value.
*** Warning *** Are your login userid and password correct?
*** Warning *** The SMTP server did not accept Auth LOGIN PASSWD value.
it works!! (In other words, using ALL parms stored in registry except for
overriding password on the command line)
I have tried -pw=mypassword, -pw "mypassword" -pw="mypassword" to store
the password in the registry to no avail.
Any ideas ??
e
I just tried your command line and compared the registry keys to what they
should have been, everything matched, including the password. My suggestion
is that you try your -SaveSettings again, ensuring the password is keyed
properly.
One question I have, does your password have any special characters or
non-ASCII characters? If yes, you might have to put your password in
quotation marks (").
--
Chip
Chip,
Thanx for the reply. When you say you compared the reg keys to what they should have been, how do you do that? I know where the keys are, but they are encrypted; not sure how to compare...

My password is just simple lower case letters and numbers, no special chars; also, as I mentioned in initial post, I tried quotes and various other forms of -pw.

Are you testing with same versions of Blat & stunnel?? I am running latest (Blat v3.1.1 & stunnel v4.55) I think...

Any more thoughts?
e
n***@yahoo.com
2013-03-20 12:16:40 UTC
Permalink
Greetings e,

You wrote "know where the keys are, but they are
encrypted; not sure how to compare..."

Go to http://tech.groups.yahoo.com/group/blat/files/Other/
and download b64.zip.

Since there is no salt we are talking translation, not
encryption.

Namtog
s***@att.net
2013-03-20 15:58:29 UTC
Permalink
namtog: Thanx for the link to b64; using it to decode the registry settings allowed me to located my problem: the Login value was correct, but somehow the Pwd value (decoded) was set to "/pw=mypassword" instead of just "mypassword". Not sure how this happened but as I mentioned in the OP, I was trying various forms of the -SaveSettings cmdline and could have tried "blat -SaveSettings ... /pw=mypassword" at some point. Anyway, cleared up now!!

Request for added feature:
Could we have an option for no body? All my info is included on the subject line and optional attached files. I am currently using an empty .txt file on the command line, but thought it would be cleaner to have -body "" (which currently throws an error) or something like that.

Great program!
Thanx,
e
Post by n***@yahoo.com
Greetings e,
You wrote "know where the keys are, but they are
encrypted; not sure how to compare..."
Go to http://tech.groups.yahoo.com/group/blat/files/Other/
and download b64.zip.
Since there is no salt we are talking translation, not
encryption.
Namtog
s***@att.net
2013-03-20 16:36:06 UTC
Permalink
namtog: Thanx for the link to b64; using it to decode the registry settings allowed me to located my problem: the Login value was correct, but somehow the Pwd value (decoded) was set to "/pw=mypassword" instead of just "mypassword". Not sure how this happened but as I mentioned in the OP, I was trying various forms of the -SaveSettings cmdline and could have tried "blat -SaveSettings ...
/pw=mypassword" at some point. Anyway, cleared up now!!

Couple other ?'s:
1. Request for feature mod:
Could we have an option for no body? All my info is included on the subject line and optional attached files. I am currently using an empty .txt file on the command line, but thought it would be cleaner to have -body "" (which currently throws an error) or something like that. I tried "blat - -to ..." in a batch file as some examples suggest, but this just hangs waiting for input from stdin to fill in the body.

2. Is blat.dll in the .zip needed for cmdline use ??

Great program!
Thanx,
e
Post by n***@yahoo.com
Greetings e,
You wrote "know where the keys are, but they are
encrypted; not sure how to compare..."
Go to http://tech.groups.yahoo.com/group/blat/files/Other/
and download b64.zip.
Since there is no salt we are talking translation, not
encryption.
Namtog
c***@att.net
2013-03-20 16:46:01 UTC
Permalink
Post by s***@att.net
namtog: Thanx for the link to b64;
using it to decode the registry settings allowed me to
located my problem: the Login value was correct, but somehow
the Pwd value (decoded) was set to "/pw=mypassword" instead
of just "mypassword".  Not sure how this happened but
as I mentioned in the OP, I was trying various forms of the
-SaveSettings cmdline and could have tried "blat
-SaveSettings ...
/pw=mypassword" at some point. Anyway, cleared up now!!
Could we have an option for no body? All my info is included
on the subject line and optional attached files.  I am
currently using an empty .txt file on the command line, but
thought it would be cleaner to have -body "" (which
currently throws an error) or something like that.  I
tried "blat - -to ..." in a batch file as some examples
suggest, but this just hangs waiting for input from stdin to
fill in the body.
2. Is blat.dll in the .zip needed for cmdline use ??
Great program!
Thanx,
e
1. Use the vertical bar "|" between quotation marks (") to have a blank line in your body, this will let Blat process your messages with an otherwise empty body.

2. Blat.dll is not required if you use Blat.exe. It is in the .zip for those people who use the .dll as part of their application.
--
Chip
s***@att.net
2013-03-20 19:11:49 UTC
Permalink
Post by c***@att.net
Post by s***@att.net
namtog: Thanx for the link to b64;
using it to decode the registry settings allowed me to
located my problem: the Login value was correct, but somehow
the Pwd value (decoded) was set to "/pw=mypassword" instead
of just "mypassword".  Not sure how this happened but
as I mentioned in the OP, I was trying various forms of the
-SaveSettings cmdline and could have tried "blat
-SaveSettings ...
/pw=mypassword" at some point. Anyway, cleared up now!!
Could we have an option for no body? All my info is included
on the subject line and optional attached files.  I am
currently using an empty .txt file on the command line, but
thought it would be cleaner to have -body "" (which
currently throws an error) or something like that.  I
tried "blat - -to ..." in a batch file as some examples
suggest, but this just hangs waiting for input from stdin to
fill in the body.
2. Is blat.dll in the .zip needed for cmdline use ??
Great program!
Thanx,
e
1. Use the vertical bar "|" between quotation marks (") to have a blank line in your body, this will let Blat process your messages with an otherwise empty body.
2. Blat.dll is not required if you use Blat.exe. It is in the .zip for those people who use the .dll as part of their application.
--
Chip
Chip:
Thanx for the replies:
1. That does the trick! I actually got NO body with "!" (if it does indeed send one blank line, maybe gmail strips it out, but in any case it gave me the same result as sending a 0-length txt file with "-body empty.txt" on the command line.

2. That's what I figured.

Thanx again,
e

Loading...