|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Command line SMTP clientDownload
Feature rich command line SMTP client.
|
Switch | Description |
---|---|
-b | Wait for key on completion |
-C<BCC recipients> | Blind Copy Recipient addresses |
-c<CC recipients> | Copy Recipient addresses |
-f<files> | List of files to send |
-h<host[:port]> | SMTP Smart Host and optional port |
-l<charset> | MIME character set (default us-ascii) |
-m<auth-method> | ESMTP authentication method (PLAIN or LOGIN, default is PLAIN) |
-n<username> | ESMTP username |
-o<originator> | Message originator |
-p<password> | ESMTP password |
-q | Quiet mode - Send less diagnostics to stderr |
-r<recipients> | Recipient addresses |
-R<reply> | Reply-to address |
-s<subject> | Message subject |
-U | Force UUEncoding |
-u | Use UUEncoding |
-# | Display version number/About Box |
-$ | Register the software |
The host specified in the -h
switch should be the DNS Name or IP Address of your SMTP server. In many cases that will be the server provided by your ISP- for example:
CSSmtp -hmy.mail.server
The -o
switch should specify the email address, and optionally the name, of the originator (usually yourself) - for example:
CSSmtp -hmy.mail.server -o"Fred Bloggs <[email protected]>"
Remember that Windows 95 and NT require that you put quotes around command line arguments which include spaces.
See the notes below for information on how to specify names and addresses.
The -R
switch allows you to specify a different reply-to address.
The -s
switch provides the subject of the message - for example:
CSSmtp -hmy.mail.server -s"CSSMTP is a great program"
Watch those spaces again!
The -r
, -c
and -C
switches specify the list of normal, CC and BCC recipients for the message. Each recipient address should be specified in the same format as the originator address and the addresses in the list should be separated with commas.
The -f
switch should list a set of files which go to make up the body of the message.
The full path of each file should be specified and the files in the list should be separated with commas. By default the files will be included in the body of the message, if you wish the file to be a message attachment you should precede the name of the file with a plus sign:
CSSmtp -fc:\docs\file1.txt,c:\docs\file2.txt,+c:\docs\file3.txt
The first two files are included in the body of the message, the third is included as an attachment.
You can specify stdin
as a source of message text by including an empty filename in the list:
dir | CSSmtp -fc:\docs\file1.txt,,+c:\docs\file3.txt
Puts file1.txt into the body of the message, then includes a directory listing, before attaching file3.txt to the message.
CSSMTP will automatically determine the correct encoding scheme to use for each file; either 7bit for normal text, quoted-printable for text including extended characters or base64 for binary files.
By default CSSMTP will use Mime Version 1.0 multipart/mixed content type messages to send the message. In some cases you may need to use UUEncoded messages for compatibility with legacy mail clients. The -u
switch disables MIME Version 1.0 support and causes CSSMTP to send files as normal text, uuencoding them when necessary. The -U
switch results in all files being UUEncoded, regardless of their content. If either the -u
or -U
switch is used then a '+' preceding any filename arguments will be ignored.
CSSMTP can establish an authenticated connection with an ESMTP server using either the PLAIN or LOGIN authentication methods.
The -n
and -p
switches specify the ESMTP credentials. If either of these switches is included in the command line an ESMTP connection will be attempted with the given credentials:
CSSmtp -hmy.mail.server -nEKrabappel -pseymour ...
The default ESMTP authentication method is PLAIN; to specify LOGIN authentication you can use the -m
switch:
CSSmtp -hmy.mail.server -mLOGIN ...
The -l
switch may be used to specify a specific value for the charset part of the MIME Content-type field, this allows language dependent character sets to be used - for example:
CSSmtp -hmy.mail.server -lISO-8859-2
Uses the ISO-8859-2 character set.
If no value is specified the default, us-ascii, is used.
-o
, -r
, -c
and -C
may be specified in the following formats:
Fred Bloggs<[email protected]>
<[email protected]> or simply [email protected]
Symbol | Value | Notes |
---|---|---|
ERROR_NONE | 0 | The program exited successfully |
ERROR_NO_ORIGINATOR | 1 | An originator must be specified, see the -o switch above |
ERROR_NO_RECIPIENTS | 2 | A recipient must be specified, see the -r switch above |
ERROR_NO_SUBJECT | 3 | A subject must be specified, see the -s switch above |
ERROR_NO_HOST | 4 | A host must be specified, see the -h switch above |
ERROR_ATACHING_FILE | 5 | The file could not be attached to the message, check it exists |
ERROR_CONNECTING_TO_HOST | 6 | An error occurred while connecting to the host, check network connectivity, firewalls and the host name |
ERROR_SENDING_MAIL | 7 | An error occurred while sending mail, check check network connectivity and firewalls |
ERROR_INVALID_ESMTP_METHOD, | 8 | Only PLAIN and LOGIN may be specified for the -m switch |
ERROR_AUTHENTICATING | 9 | The server returned an error while authenticating, check username, password and authentication method |
ERROR_CLOSING_CONNECTION | 10 | The server returned an error while closing the connection, the server is probably broken |
Release | Notes |
---|---|
V01.7a |
|
V01.6b |
|
V01.5a Build 221 |
|
V01.5a Build 211 |
|
V01.5a |
|
v01.0f |
|
V01.0e |
|
V01.0d |
|
V01.0c |
|
V01.0b |
|
V01.0a |
|