Sending an email from the unix command prompt.

SHOBOSH shobosh na aol.com
Středa Srpen 1 02:01:37 CEST 2001


Greetings

Re: sending an email from the unix command prompt.

Anyone know how to use the unix 'mail' command to send an email with an
attachment, from the command line. I need to use this from within an
application.

To date, I have been using:

mail -s "This is the subject" ardvark na foo.com </tmp/mailfile

This simply sends an email to ardvark na foo.com, the email contains the ASCII
contents of /tmp/mailfile. However, there is no way of specifying an attachment
in MIME format.

Any clues?

Many thanks

Maurice Bishop
Reply to newsgroup please


Další informace o konferenci Sendmail