Purpose:Send an HTML-formatted email message

 

Format:SENDHTML [/A file1 [/A file2 ...]  /D /Eaddress /H"header: value" /In /M /Pn /R /SMTP=server /Sn /SSL[=n] /USER=address /V /X] "address[,address...] [cc:address[,address] bcc:address[,address...]]" subject [ text | @msgfile ]

 

file1...

The attachment files

address

The destination email address

subject

The subject line

text

The message to send

msgfile

The file containing the message body

/SSL=n

SSL negotiation type

/SMTP=server

Override the default SMTP server

/USER=address

Override the default sending email account

 

/A file

Attachment

/Pn

Priority

/D

Delivery Confirmation

/R

Send read receipt

/E

Reply-to address

/Sn

Sensitivity

/H

Send custom header

/V

Verbose

/In

Importance

/X

EHLO

/M

CRAM-MD5 authentication



 

See also: SNPP and SMPP.

 

Usage:

 

SENDHTML sends an HTML email message from TCC via SMTP. The text of the message can be entered either on the command line or read from a text file. SENDHTML also supports SMTP over SSL. If you don't specify any arguments, SENDHTML will display its command dialog.

 

Before you can use SENDHTML, you must either set the SMTP configuration options, or have a default account in the registry. Depending on your system configuration, you may also need to start an Internet connection before you use SENDHTML.

 

A SENDHTML message has three required parts: an address, a subject, and message. Optionally it may also have attachments.

 

 1. The address field contains one or more standard Internet email addresses:

 

 sendhtml abc@xyz.com ...

 

If address contains white space, the entire address field must be surrounded by quotes. You can specify multiple destinations by separating the addresses with commas and enclosing the entire string in quotes (all addresses will appear in the "To:" header sent to all recipients). You can add CC (copy) addresses by prefacing the desired target(s) with cc:; and BCC (blind copy) addresses by prefacing the desired target(s) with bcc:. For example:

 

 sendhtml "bob@bob.com bcc:joe@joe.com" Test Hello!

 

will send the text Hello! with subject Test to bob@bob.com with a blind copy to joe@joe.com.

 

 2. The subject will appear as the subject line in the message. If it contains white space, it must be surrounded by quotes.

 

 3. The message may either be entered on the command line, or it may be placed in a text file. To tell SENDHTML to send the contents of a file as the message text, use @ sign, followed by the filename.

 

You can use the same approach to send the text content of the clipboard (@CLIP:) or the console (@CON:):

 

sendhtml abc@xyz.com Party @c:\messages\invitation.txt

sendhtml abc@xyz.com Party @clip:

type myfile.txt | sendmail abc@xyz.com Party @con:

 

Options:

 

/=Display the SENDHTML command dialog to help you set the command line options. You cannot specify any other arguments on the command line.

 

/A fileAttach file to the email message. The /A switch and the name of the file to attach must appear before address. Any file name that contains spaces or special characters must be quoted. You can send multiple files by repeating the /A switch for each additional file to send. For example:

 

sendhtml /a file1 /a "d:\path\My file2" abc@xyz.com ...

 

/DRequest Delivery Notification.

 

/ESet the "reply to" address in the message header.

 

/HSet a custom header. The header will be appended to the message headers created from "to", "from", "subject", etc. The headers must of the format "header: value" as specified in RFC 822. You can specify multiple headers with multiple /H arguments.

 

/InSet the Importance where n is:

 

1High
2Normal (default)
3Low

 

/MUse CRAM-MD5 authentication.

 

/PnSet the Priority where n is:

 

0Unspecified (default)
1Normal
2Urgent
3Non Urgent

 

/R(Read receipt) : Send a read receipt.

 

/SnSet the message sensitivity. The values are:

 

1Personal
2Private
3CompanyConfidential

 

/SMTPOverrides the default SMTP server (as set in the registry) to use when sending mail.

 

/SSL=nType of SSL negotiation. The values are:

 

0Automatic (default if no n value is specified). If the remote port is set to the standard plaintext port, SENDHTML will use Explicit mode. In all other cases, SSL negotiation will be implicit.
1Implicit - SSL negotiation will start immediately after the connection is established.
2Explicit - SENDMAIL will first connect in plaintext, and then explicitly start SSL negotiation.
3No SSL negotiation or security. (This is the default if /SSL is not specified.)

 

/USEROverrides the default email account (as set in the registry) to use when sending mail.

 

/VShow all the interaction with the server, except the message header and message body text.

 

/XSend EHLO instead of HELO.