Operating System - HP-UX
1833694 Members
3657 Online
110062 Solutions
New Discussion

Re: how to send an e-mail with attached file

 
SOLVED
Go to solution
Stefano_10
Advisor

how to send an e-mail with attached file

I have to send e-mails in non interactive mode attaching file; but i haven't found how.
I have tried to use:
uuencode file|mail address
but after the command i have to type ctrl+c to end the command and then the mail arrives without the attach.
What can i do to solve this problem?
Which other mailer can i use?
Thanks
Merry Christmas

Stefano
3 REPLIES 3
Pete Randall
Outstanding Contributor
Solution

Re: how to send an e-mail with attached file

Uday_S_Ankolekar
Honored Contributor

Re: how to send an e-mail with attached file


Use uuencode like this

uuencode filename filename | sendmail emailaddress.

Note thsat file name is twice.

-USA..
Good Luck..
Paul Sperry
Honored Contributor

Re: how to send an e-mail with attached file

To encode and send a compiled program foo to user friend:

uuencode foo foo | mailx -s 'new program' friend