ZTree.com  | ZEN  | About...  

 Index   Back

[Tip] BLAT is nice and MS-free   [Tip]

By: Slobodan Vujnovic   Homepage   France  
Date: Nov 06,2000 at 22:34
In Response to: [Tip] Send To Mail Recipient Using Outlook (Andrew Watson)

> For some time now I have been very happily using
> an F9 Menu item called Properties that invokes
> D:\ZTREE\PROFSFOR.EXE %1 to access the Properties
> screen for Directories and Files.

It would be even nicer if ZTW used the Properties key (next to the Right Ctrl key) for this, which is reserved for this anyway. This can't break anything and would require no additional learning for those who use it in other apps. It could even be configurable to launch whatever.exe you want.

> "C:\Program Files\Microsoft
> Office\Office\SENDFILE.EXE" %1

I've been using a command line mailer, BLAT, for years via F9. The advantage is that it just sends the mail without you having to go through a dialog, because you can provide the From, To, Subject, and other parameters on the command line:


C:\3\blat %1 -t SMTP%user@domain.com -s "%1"

Of course, you need to create an F9 entry for each user, or a distribution list, but once it's set and debugged, it's fast and easy to use. I use this to send mail to my various accounts on various platforms in cases where this is easier than using ftp, for example.

C:\>blat
Blat v1.8.5b: WinNT/95 console utility to mail a file via SMTP
by P.Mendes, M.Neal, G.Vollant, T. Charron
http://www.interlog.com/~tcharron/blat.html
syntax:
Blat -to [optional switches (see below)]
Blat -install [[[]]] [-q]
Blat -profile [-delete | ""] [profile1] [profileN] [-q]
Blat -h [-q]

-install [ [ []]]

: set's SMTP server, sender, number of tries and port for profile

( and may be replaced by '-').

: file with the message body ('-' for console input, end with ^Z)
-to : recipient list (also -t) (comma separated)
-tf : recipient list filename
-subject : subject line (also -s)
-f : overrides the default sender address (must be known to server)
-i : a 'From:' address, not necessarily known to the SMTP server.
-cc : carbon copy recipient list (also -c) (comma separated)
-cf : cc recipient list filename
-bcc : blind carbon copy recipient list (also -bcc) (comma separated)
-bf : bcc recipient list filename
-organization : Organization field (also -o and -org)
-body : Message body
-x : Custom 'X-' header. eg: -x "X-INFO: Blat is Great!"
-r : Request return receipt.
-d : Request disposition notification.
-h : displays this help.
-q : supresses *all* output.
-debug : Echoes server communications to screen (disables '-q').
-noh : prevent X-Mailer header from showing homepage of blat
-noh2 : prevent X-Mailer header entirely
-p : send with SMTP server, user and port defined in .
-server : Specify SMTP server to be used. (optionally, addr:port)
-port : port to be used on the server, defaults to SMTP (25)
-hostname : select the hostname used to send the message
-mime : MIME Quoted-Printable Content-Transfer-Encoding.
-enriched : Send an enriched text message (Content-Type=text/enriched)
-html : Send an HTML message (Content-Type=text/html)
-uuencode : Send (binary) file UUEncoded
-base64 : Send (binary) file using base64 (binary Mime)
-try : how many time blat should try to send. from '1' to 'INFINITE'
-attach : attach binary file to message (may be repeated)
-attacht : attach text file to message (may be repeated)
-ti : Set timeout to 'n' seconds.

Note that if the '-i' option is used, is included in 'Reply-to:'
and 'Sender:' fields in the header of the message.

Optionally, the following options can be used instead of the -f and -i
options:

-mailfrom The RFC 821 MAIL From: statement
-from The RFC 822 From: statement
-replyto The RFC 822 Reply-To: statement
-returnpath The RFC 822 Return-Path: statement
-sender The RFC 822 Sender: statement

For backward consistency, the -f and -i options have precedence over these
RFC 822 defined options. If both -f and -i options are omitted then the
RFC 821 MAIL FROM statement will be defaulted to use the installation-defined
default sender address

1,452 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 71 users online (0 registered, 71 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 10:15 pm UTC  |  Hits:62,382,056  (34,453 Today )
RSS Feed