Tuesday, 31 May 2011

Installing and Configuring the BLAT executable



 Blat is useful for creating scripts where mail has to be sent automatically (CGI, backups, etc.), or just as a quick way to send a file or message quickly from the command line. It will store relevant configuration details in the registry for ease of use. Optionally, blat can also attach multiple binary files to your message.



1. Download the .ZIP file from the http://www.blat.net/194/
2. Extract the files to their own folder.
Note: Most of the files in this .ZIP file are informational and is source code for developmental purposes.
3. Copy the blat.exe file to the \WINNT\System32 directory in Windows
4. From a command prompt, run the following command (Note: This will be the primary account that will send the emails from the specified server):
% blat -install <server addr> <sender's addr>
Note: "<server addr>" is the hostname or IP address of the email server that will send the email notifications.
"<sender's addr>" is the account that will be the primary sender of the email notifications.
Example:
% blat -install emailserver.company.com useraccount@company.com
5. Test the installation of blat by creating a text file C:\testfile.txt with a message and emailing it to the NetBackup administrator.
% blat C:\testfile.txt -s test_subject -to useraccount@company.com
If blat is working correctly, the NetBackup administrator should receive the contents of the C:\testfile.txt file.
Note: Blat stores its configuration information in the Windows registry. If you need to confirm any default Blat settings, they can be found
under the following registry path: HKEY_LOCAL_MACHINE/SOFTWARE/Public Domain/Blat.
Warning: Incorrect use of the Windows registry editor may prevent the operating system from functioning properly. Great care should be taken when making changes to a Windows registry. Registry modifications should only be carried-out by persons experienced in the use of the
registry editor application. It is recommended that a complete backup of the registry and workstation be made prior to making any registry changes.

No comments:

Post a Comment