![]() |
|
|||||||||||||||
|
This program requires that you have TCP/IP installed and properly
configured on your machine. If your SMTP host is not on your local
network (say, for example, that you use a dial-up connection to the
Internet for email), then you must go online and establish your PPP
or SLIP session before running SendSMTP.
Command-line parameters may be specified in any order. Parameters including spaces or other special
characters must be enclosed in double quotation marks.
sendsmtp host=sendmail.hawke.dom from=lady@hawke.dom to=lord@hawke.dom message="This is a test."
This sends a letter, from lady@hawke.dom to lord@hawke.dom, using the SMTP host
called sendmail.hawke.dom. The letter consists of the words "This is a test," and the
subject (since you didn't specify one) will be "Command Line Mail."
Since this is the first time you have run the program, SendSMTP remembers the values for
the host and your email address. You don't need to enter them again unless you want
to override the defaults. For example, you may now type just
sendsmtp to=lord@hawke.dom message="This is another test" subject="Second Test"
and SendSMTP will remember that your host is sendmail.hawke.dom and that you are
lady@hawke.dom. This will send the message "This is another test" with the subject
line "Second Test" to lord@hawke.dom. Notice that by specifying a subject, you can
override the default. (To change the default permanently, use regedt32.exe to edit
the registry as shown above.)
For example, if your parmfile is named
c:\myparmfile.txt, you'd invoke
SendSMTP with SendSMTP @c:\myparmfile.txt.
Here is a sample parm file showing all the available options.
sendsmtp to=jjohng@microsoft.com file=c:\config.sys
This sends your c:\config.sys file in plain text to a user called jjohng at Microsoft (used
for example purposes only). The file wasn't encoded because (a) you didn't specify an
encoding format, and (b) the file is plain text. Had the file been binary, SendSMTP
would have UUEncoded it for you.
To force the config.sys file to be encoded using Base64 MIME format, type
sendsmtp to=jjohng@microsoft.com file=c:\config.sys encoding=mime
This sends the same file as above, but forces SendSMTP to encode it using Base64 MIME.
Here are some more examples, showing most of the options. Notice that the order of
the parameters is irrelevant. Any parameters left off use the defaults:
sendsmtp someone@somewhere.com "This is a quick note"
SendSMTP is smart enough to figure out that if you provide only two parameters without any
keywords, that the first parameter is the recipient, and the second is your message. It will
use your defaults (as set the first time you run the program) for the host, from, and
subject parameters.
You may also enter a message interactively. To use the defaults, just enter
sendsmtp someone@somewhere.com
If SendSMTP sees only a to= keyword, or if you have exactly one parameter without any
keywords, it will use the first parameter as the recipient and prompt you to enter
your message text from the keyboard.
To specify other settings and still use the keyboard for interactive typing, specify
file=con or file=stdin.
|
|
|
||
| Home Top of this Page Store Downloads Printer-Friendly Version | ||
|
Copyright © 1995-2008 Greyware Automation Products, Inc. All Rights Reserved All Trademarks mentioned are the properties of their respective owners. [ Privacy Policy ] [ Contact Greyware ] [ Feedback to Greyware ] |
||