send attachment using mail in command line

send attachment using mail in command line

Post by Roka » Tue, 02 Nov 1999 04:00:00



How can I send an attachment using the 'mail' command in SCO ??

eg. mail -s"User Reports" username < filename

I do not want the 'filename' to be in the body of the message but attached
to the message (could be a binary file)

Any help would be appreciated.

 
 
 

send attachment using mail in command line

Post by ceise » Wed, 03 Nov 1999 04:00:00



> How can I send an attachment using the 'mail' command in SCO ??

> eg. mail -s"User Reports" username < filename

> I do not want the 'filename' to be in the body of the message but attached
> to the message (could be a binary file)

> Any help would be appreciated.

get mutt from skunkware at ftp.sco.com
and use the -a switch
--
Clive Eisen



 
 
 

send attachment using mail in command line

Post by Roberto Zin » Wed, 03 Nov 1999 04:00:00



> How can I send an attachment using the 'mail' command in SCO ??

> eg. mail -s"User Reports" username < filename

> I do not want the 'filename' to be in the body of the message but attached
> to the message (could be a binary file)

> Any help would be appreciated.

Have you tried with the munpack package ? Please try by
searching the 'Net since I'm pretty sure you'll find it;
alternatively, drop me an Email and I'll send it to you.

Best,
Roberto
--
---------------------------------------------------------------------

Strhold Sistemi EDP                           Reggio Emilia     ITALY
---------------------------------------------------------------------
"Has anybody around here seen an aircraft carrier?"                
        (Pete "Maverick" Mitchell - Top Gun)

 
 
 

send attachment using mail in command line

Post by Stuart J. Brown » Thu, 04 Nov 1999 04:00:00


you could always try:

uuenocde <file> | mail -s"User Reports" usenrame


>How can I send an attachment using the 'mail' command in SCO ??

>eg. mail -s"User Reports" username < filename

>I do not want the 'filename' to be in the body of the message but attached
>to the message (could be a binary file)

>Any help would be appreciated.

 
 
 

send attachment using mail in command line

Post by L Jand » Thu, 04 Nov 1999 04:00:00




Quote:> you could always try:

> uuenocde <file> | mail -s"User Reports" usenrame

This works and is correct. Although <typo> should be    uuencode
and this statement will hang and wait for message to be entered, and when
<CTRL D> is entered the message is sent.


> >How can I send an attachment using the 'mail' command in SCO ??

> >eg. mail -s"User Reports" username < filename

> >I do not want the 'filename' to be in the body of the message but
attached
> >to the message (could be a binary file)

> >Any help would be appreciated.

 
 
 

send attachment using mail in command line

Post by Scott Taylo » Thu, 04 Nov 1999 04:00:00





> > you could always try:

> > uuenocde <file> | mail -s"User Reports" usenrame

> This works and is correct. Although <typo> should be    uuencode
> and this statement will hang and wait for message to be entered, and when
> <CTRL D> is entered the message is sent.

uuencode <sourcefile> <remotefile>|mail [-s] <username>

works much better.  This way it forces the file to have a name specially
when using Netscape Mail or Eudora to receive.  

Oh yeah, it also works with MS mail thingies too. ;)

--
Scott Taylor
MIS, MAAX Westco Inc.

 
 
 

send attachment using mail in command line

Post by KAbraha4 » Sat, 13 Nov 1999 04:00:00


>Subject: send attachment using mail in command line

>Date: Tue, 02 November 1999 02:43 AM EST

>How can I send an attachment using the 'mail' command in SCO ??

>eg. mail -s"User Reports" username < filename

>I do not want the 'filename' to be in the body of the message but attached
>to the message (could be a binary file)

>Any help would be appreciated.

Also try 'metamail'
ken
 
 
 

send attachment using mail in command line

Post by don » Sat, 13 Nov 1999 04:00:00




> > > you could always try:

> > > uuenocde <file> | mail -s"User Reports" usenrame

> > This works and is correct. Although <typo> should be    uuencode
> > and this statement will hang and wait for message to be entered, and when
> > <CTRL D> is entered the message is sent.

> uuencode <sourcefile> <remotefile>|mail [-s] <username>

> works much better.  This way it forces the file to have a name specially
> when using Netscape Mail or Eudora to receive.

> Oh yeah, it also works with MS mail thingies too. ;)

Is there a was to send both a binary attachment and inline text?  Say I have
two files, one a binary fiule and one a textfile and I want to send them both
within the same email.
 
 
 

send attachment using mail in command line

Post by Scott Taylo » Sat, 13 Nov 1999 04:00:00



> Is there a was to send both a binary attachment and inline text?  Say I have
> two files, one a binary fiule and one a textfile and I want to send them both
> within the same email.

Sure, use Netscape Messenger.  :o)

I have yet to be successful doing that from the command line, maybe with
a tee command, but I doubt it.  If you uuencode a text file it comes out
as text in the Netscape receive end, but I don't know of a way to
uuencode 2 files into one e-mail.  I would just make the subject line as
descriptive as possible.

Sorry, not much help there.

--
Scott Taylor
MIS, MAAX Westco Inc.

 
 
 

send attachment using mail in command line

Post by ceise » Sat, 13 Nov 1999 04:00:00


As I think I said earlier in this thread ( it might have been another
one ) get ( from skunkware ) and use mutt
mutt -a file1 -a file2 -s subject recipient <<!
Here are your two files
!



> > Is there a was to send both a binary attachment and inline text?  Say I have
> > two files, one a binary fiule and one a textfile and I want to send them both
> > within the same email.

> Sure, use Netscape Messenger.  :o)

> I have yet to be successful doing that from the command line, maybe with
> a tee command, but I doubt it.  If you uuencode a text file it comes out
> as text in the Netscape receive end, but I don't know of a way to
> uuencode 2 files into one e-mail.  I would just make the subject line as
> descriptive as possible.

> Sorry, not much help there.

> --
> Scott Taylor
> MIS, MAAX Westco Inc.

--
Clive Eisen


 
 
 

send attachment using mail in command line

Post by Jean-Pierre Radle » Sun, 14 Nov 1999 04:00:00


don opined (on Fri, Nov 12, 1999 at 09:33:36AM -0500):
| Is there a was to send both a binary attachment and inline text?  Say I have
| two files, one a binary fiule and one a textfile and I want to send them both
| within the same email.


--
JP

 
 
 

send attachment using mail in command line

Post by Lawrence Leavel » Fri, 03 Dec 1999 04:00:00


Try uuenview.  It works very well for attachments.
Lawrence Leavell

> >Subject: send attachment using mail in command line

> >Date: Tue, 02 November 1999 02:43 AM EST

> >How can I send an attachment using the 'mail' command in SCO ??

> >eg. mail -s"User Reports" username < filename

> >I do not want the 'filename' to be in the body of the message but attached
> >to the message (could be a binary file)

> >Any help would be appreciated.

> Also try 'metamail'
> ken

 
 
 

send attachment using mail in command line

Post by Roberto Zin » Sat, 04 Dec 1999 04:00:00



> Try uuenview.  It works very well for attachments.
> Lawrence Leavell

Well, I've used the 'mpack' package (mpack and munpack)
succesfully under SCO OpenServer 5.0.5 (do a quick search
on the 'Net and you'll find it - alternatively, drop me
an Email and I'll send it to you).

Off-Topic: UnixWare 7.1 provides the mimencode(1) utility
which can encode/decode MIME messages (eg, to decode a MIME
attach save it on a separate file - without headings and
labels, only raw data - and type 'cat file | mimencode -u > file1').

My finding of the day :-)

Best,
Roberto
--
---------------------------------------------------------------------

Technical Support Manager -- Strhold Sistemi EDP Reggio Emilia(ITALY)
---------------------------------------------------------------------
"Has anybody around here seen an aircraft carrier?"                
        (Pete "Maverick" Mitchell - Top Gun)

 
 
 

1. Sending Mail with attachment from Command Line in Linux

How would I send mail from the command line with a binary attachment in
Linux?

I have tried to use the mail command, but it does not seem to support
attachments.  I have tried Pine from the command line with the '-attach'
  option, but it seems to require user intervention to send and close.

Any help is greatly appreciated.

Joe

2. Netboot won't compile

3. How to send an email with attachment using the command line

4. UNIX ADMIN or HELP DESK opportunity in Chicago

5. How to send files as attachment using mailing commands on Unix

6. Whazzup?

7. Sending mail with attachment using mailx command

8. %CPU usage of a process

9. Is there a way to send mail attachment using /usr/ucb/mail ?

10. How Do I send an Email with attachments from the command line

11. Sending email & attachments from command line

12. Sending MIME attachments via command line

13. sending email with attachment from command line