Sending an email from the unix command prompt.

Jan Moravec jmoravec na protel.cz
Středa Srpen 1 09:06:37 CEST 2001


Hi,

   you can try something like this

cat file.dat | uuencode file.dat | mail -s "subjecttttt" sb na mail.xy

	or

uuecnode file.dat < file.dat | mail ...

		Honza

---------------------------------------------------------------------

On 1 Aug 2001, SHOBOSH wrote:

> 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