>I'm extremely rusty on UNIX, and am looking for help on sending HTML mail
>via SMTP, using mail or Mail. Could somebody send me a commandline, please?
>Specifically:
>--how to specify recipient
>--how to specify subject
>--how to set content-type to HTML
>--how to 'attach a file' a la most Windows mail programs
Solaris doesn't come with a command-line mail program that can do
attachments the right way. The only thing you can do with standard
Unix utilities is use uuencode, which is really old and problematic.
Instead, you should use MIME for e-mail attachments.
The best thing to do is to download a third-party program that allows
you to, from the command line, send mails with attachments. One
program that allows that is "mutt". See http://www.veryComputer.com/
By the way, if you have to send HTML via e-mail, it is best to allow
the recipient the option to request that future e-mails be in plain
text only. I don't know specifics, but I believe there are some
programs that will let you render HTML to plain text, so if you do it
right, you won't have to compose two separate versions of every
message.
- Logan
--
"Our grandkids love that we get Roadrunner and digital cable."
(Adverti*t for Time Warner cable TV and internet access, July 2001)