SENDHTML |
Purpose: | Send an HTML-formatted email message |
Format: | SENDHTML [/A file1 [/A file2 ...] /D /Eaddress /H"header: value" /In /IPv6 /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 |
The destination email address |
|
The subject line |
|
The message to send |
|
The file containing the message body |
|
SSL negotiation type |
|
/SMTP=server |
Override the default SMTP server |
/USER=address |
Override the default sending email account |
/A file |
Attachment |
CRAM-MD5 authentication |
|
Delivery Confirmation |
/Pn |
Priority |
|
Reply-to address |
Send read receipt |
||
Send custom header |
Sensitivity |
||
/In |
Importance |
Verbose |
|
Use IPv6 instead of IPv4 |
EHLO |
Usage:
SENDHTML sends an HTML email message from TCC-RT 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.
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 [email protected] ...
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 "[email protected] bcc:[email protected]" Test Hello!
will send the text Hello! with subject Test to [email protected] with a blind copy to [email protected].
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 [email protected] Party @c:\messages\invitation.txt
sendhtml [email protected] Party @clip:
type myfile.txt | sendmail [email protected] Party @con:
Options:
sendhtml /a file1 /a "d:\path\My file2" [email protected] ...
1 | High |
2 | Normal (default) |
3 | Low |
0 | Unspecified (default) |
1 | Normal |
2 | Urgent |
3 | Non Urgent |
1 | Personal |
2 | Private |
3 | CompanyConfidential |
0 | Automatic (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. |
1 | Implicit - SSL negotiation will start immediately after the connection is established. |
2 | Explicit - SENDMAIL will first connect in plaintext, and then explicitly start SSL negotiation. |
3 | No SSL negotiation or security. (This is the default if /SSL is not specified.) |