An Example with Blat Email Client |
Top Previous Next |
In this example, we'll connect the Blat email client and demonstrate its operation. The connection with the email client is useful when you need to email photos after processing. Blat is a command-line utility, so the batch file is needed for working with it. Create a batch file with bat extension and place it to the same folder where blat.exe is located. An example of the file contents is shown in the picture below. More details on the syntax of the batch file in Blat can be found in the developer website or the utility accompanying documents. It should be noted here just that the number of files being sent is set using the parameter: -attach. %1 placed after this parameter means that one file will be attached to the email as shown in the picture below. To increase the number of the attached files you only have to add them with % sign separated by commas. Thus, for sending 2 files, the entry will look like this: %1,%2. You may need to change the number of attached files if you must to attach, for example, a text document with personal data of the photographed person or other additional information to the email with the processed image. After creating the bat file, you can move on to connecting the application.
The contents of the chapter are as follows:
|