This is a discussion on How to send attachment with mail in AIX ??? within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi All, I am using AIX5L. I am able to send the mail but i dont know how to ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi All, I am using AIX5L. I am able to send the mail but i dont know how to attach the file with any mail. I have tried like this : uuencode arbind.txt arbind.txt | mailx -s "Subject : Attachment" getarbind@gmail.com But this commands also doesnot attach the file. It sends the mail without attachment. Plz help me regarding this. Thanks in Advance !!! Bye |
| |||
| Arvind wrote: > Hi All, > I am using AIX5L. I am able to send the mail but i dont know how to > attach the file with any mail. > > I have tried like this : > uuencode arbind.txt arbind.txt | mailx -s "Subject : Attachment" > getarbind@gmail.com > > But this commands also doesnot attach the file. It sends the mail > without attachment. > > Plz help me regarding this. > > Thanks in Advance !!! > > Bye Hey, We use almost the same: uuencode <full path of the attachment> file.txt | mail - s "SUBJECT" xyz@domain.com As you can see, the difference are: -full patha of the attachment and -mail (not mailx). Hope it works for you... |
| |||
| "Arvind" <getarbind@gmail.com> wrote in message news:1165475741.265977.85350@l12g2000cwl.googlegro ups.com... > Hi All, > I am using AIX5L. I am able to send the mail but i dont know how to > attach the file with any mail. > > I have tried like this : > uuencode arbind.txt arbind.txt | mailx -s "Subject : Attachment" > getarbind@gmail.com > > But this commands also doesnot attach the file. It sends the mail > without attachment. > > Plz help me regarding this. I now use Perl and Mail::Sendmail to do stuff like this - easier IMO than driving it via shell... cheers, clive |
| |||
| Arvind wrote: > Hi All, > I am using AIX5L. I am able to send the mail but i dont know how to > attach the file with any mail. > > I have tried like this : > uuencode arbind.txt arbind.txt | mailx -s "Subject : Attachment" > getarbind@gmail.com > > But this commands also doesnot attach the file. It sends the mail > without attachment. > > Plz help me regarding this. > > Thanks in Advance !!! > > Bye > I use pine from http://www.washington.edu/pine/ |
| |||
| On Dec 7, 2:15 am, "Arvind" <getarb...@gmail.com> wrote: > Hi All, > I am using AIX5L. I am able to send the mail but i dont know how to > attach the file with any mail. I use mutt --> ftp://ftp.software.ibm.com/aix/freeS...aix5.1.ppc.rpm > I have tried like this : > uuencode arbind.txt arbind.txt | mailx -s "Subject : Attachment" > getarb...@gmail.com mutt -a filename.out -s Subject email@address.com > But this commands also doesnot attach the file. It sends the mail > without attachment. > > Plz help me regarding this. > > Thanks in Advance !!! > > Bye |
| |||
| On 12/7/2006 4:52 AM, I believe that jp wrote: > Arvind wrote: >> Hi All, >> I am using AIX5L. I am able to send the mail but i dont know how to >> attach the file with any mail. >> >> I have tried like this : >> uuencode arbind.txt arbind.txt | mailx -s "Subject : Attachment" >> getarbind@gmail.com >> >> But this commands also doesnot attach the file. It sends the mail >> without attachment. >> >> Plz help me regarding this. >> >> Thanks in Advance !!! >> >> Bye > > > Hey, > > We use almost the same: > uuencode <full path of the attachment> file.txt | mail - s > "SUBJECT" xyz@domain.com > > > As you can see, the difference are: > -full patha of the attachment and > -mail (not mailx). > > Hope it works for you... > But that doesn't seem to cause the mail to appear as an attachment to the recipient, it just sticks a uuencoded version of the file in the body of the mail message. Doesn't it? Tim |
| |||
| On 12/7/2006 1:29 PM, I believe that c00p wrote: > > On Dec 7, 2:15 am, "Arvind" <getarb...@gmail.com> wrote: >> Hi All, >> I am using AIX5L. I am able to send the mail but i dont know how to >> attach the file with any mail. > > I use mutt --> > ftp://ftp.software.ibm.com/aix/freeS...aix5.1.ppc.rpm > >> I have tried like this : >> uuencode arbind.txt arbind.txt | mailx -s "Subject : Attachment" >> getarb...@gmail.com > > mutt -a filename.out -s Subject email@address.com > >> But this commands also doesnot attach the file. It sends the mail >> without attachment. >> >> Plz help me regarding this. >> >> Thanks in Advance !!! >> >> Bye > Kewl... I'm not the OP, but have looked into doing this in the past. Most of my efforts have resulted in the file not being an attachment, but being part of the message body. However, mutt has a -x switch which causes it to behave like mailx, so this works for me now: echo "Message Body" | mutt -a /path/to/file -s "Subject" -x e-mail@domain Thanks, Tim |
| ||||
| Arvind <getarbind@gmail.com> wrote: > Hi All, > I am using AIX5L. I am able to send the mail but i dont know how to > attach the file with any mail. > > I have tried like this : > uuencode arbind.txt arbind.txt | mailx -s "Subject : Attachment" > getarbind@gmail.com > > But this commands also doesnot attach the file. It sends the mail > without attachment. > > Plz help me regarding this. > > Thanks in Advance !!! > > Bye > Look for mpack. Michael |
| Thread Tools | |
| Display Modes | |
|
|