Re: Installation of Blat

"'Chip' [email protected] [blat]" <[email protected]> Mon, 23 Oct 2017 22:06:40 -0700
Newsgroups gmane.mail.blat
Message-ID <5688D50A0A324D66AECF305C2992E5CF@chip>
> Sorry, still need help! 
>
> A few month ago I was struggling to store all relevant information into the windows registry. I created .reg File, and I am able to add the info on remote client PCs. Now, we are about to roll out to clients, and I want to use a different domain to send the email. We have accounts with access to SMTP servers on both domains. I remember before when I started to get into the usage of blat, I had a hard time correctly storing all relevant info into the registry. But somehow I succeeded.
>
> In regedit, I now have an entry in HKEY_LOCAL_MACHINE\SOFTWARE\PUBLIC DOMAIN\Wow6432Node\Blat with the entries:
>
> (Default) (value not set)
> Login YmJ .... bQ==   (*)
> Pwd YmF ... TY=  (*)
> Sender mail.pos.com
> SMTP Port 26
> SMTP Server mail.pos.com
> Try 3
>
> (*) These values were altered here.
> I see that both Login and Pwd are scrambled.
>
> I think I tried all approaches given in the documentation:
>
> blat -install mail.pos.com [email protected] 3 26 - [email protected] mailpw
> or using prefixes given in the registry overrides section in the syntax file on blat.net, but the pwd field in the registry is always empty.
>
> PS: Earlier someone suggested to add these commands to the blat command line when sending emails; I rather not do this as I believe the smtp password stored in the registry encrypted, which I prefer to specifying the pw in readable form.
>
> Please help!
>
> I really to install these parameters in our clients PCs with either a blatinstall batch file or a .reg file.  Am i right assuming that i need to create different .reg files for 32 bit and 64 bit systems?  OS is Windows 7, 32 or in some cases 64.  We also have a few Windows 10 (both 32 and 64 bit) clients. 


I saw from an earlier email that you have 32-bit Blat version 3.2.17.  You do not need two .reg files, because you can have support for both 32-bit Windows and 64-bit Windows in one .reg file.  I see your registry path above is wrong, you have Wow6432Node and “Public Domain” switched places.  It needs to look like this:

The registry path for 64-bit Windows would be:

        [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Public Domain\Blat]

or for 32-bit Windows:

        [HKEY_LOCAL_MACHINE\SOFTWARE\Public Domain\Blat]

Blat can also store its keys into HKEY_CURRENT_USER path:

        [HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Public Domain\Blat]
or
        [HKEY_CURRENT_USER\SOFTWARE\Public Domain\Blat]

To store username and password from the command line, this should work for you:

        blat -install smtp.pos.com emailaddy 26 5   -   -u login_username -pwd user_password

You need to use the –u and –pwd options to store those credentials.  There is a lone hyphen between the number five (5) and –u, which tells Blat to use the default profile location in your Windows registry.

Here is a sample .reg file that should work with both 32-bit and 64-bit Windows.
  Windows Registry Editor Version 5.00

  [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Public Domain\Blat]
  "Login"="*******blocked="
  "Pwd"="*******blocked="
  "Sender"="*******blocked"
  "SMTP Port"="26"
  "SMTP server"="mail.pos.com"
  "Try"="3"

  [HKEY_LOCAL_MACHINE\SOFTWARE\Public Domain\Blat]
  "Login"="*******blocked="
  "Pwd"="*******blocked="
  "Sender"="*******blocked"
  "SMTP Port"="26"
  "SMTP server"="mail.pos.com"
  "Try"="3"

I hope this helps.

-- 
Chip