首页
首页 » 其它 » mailto

mailto


mailto

mailto [options] [recipients]

Send mail with MIME types and text formatting. If no recipients are specified, mailto prompts for the names. This program has a very similar interface to that of the mail command, with two differences: it only sends mail, and it adds a number of text-formatting and MIME-handling features, described here. For features not covered here, see the mail command. mailto uses the metamail backend and relies on the mailcap configuration files.

Options

-a charset

Specify an alternate character set.

-c name

Specify a name for the CC: field. Specify multiple names with a comma-separated list inside double quotes.

-s subj

Specify the Subject: field. Use double quotes if there are any spaces.

Text formatting

Mail formatting is handled with escape sequences that begin with the tilde (~) character. Those for text formatting are:

~b

Turn bold text on or off.

~i

Turn italic text on or off.

~jc, ~jl, ~jr

Set justification to center, left, or right, respectively.

~k

Toggle whether to send a blind copy to yourself.

~n

Hard line break (newline).

~>, ~<

Increase or decrease left margin.

~<R, ~>R

Increase or decrease right margin.

~Q

Quotation mode (indent and mark selection as excerpt).

~z

Append ~/.signature as the signature for this message.

Including objects in mail

You can include a variety of objects in your messages, again using tilde escape sequences. To do so, enter ~*, and the program will prompt you for the type of data you wish to add. The available content types will vary from installation to installation.