Unix Technical Forum

How to send attachment with mail in AIX ???

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 11:56 AM
Arvind
 
Posts: n/a
Default How to send attachment with mail in AIX ???

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 11:56 AM
jp
 
Posts: n/a
Default Re: How to send attachment with mail in AIX ???


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...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 11:56 AM
Clive George
 
Posts: n/a
Default Re: How to send attachment with mail in AIX ???

"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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 11:56 AM
sol gongola
 
Posts: n/a
Default Re: How to send attachment with mail in AIX ???

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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 11:56 AM
c00p
 
Posts: n/a
Default Re: How to send attachment with mail in AIX ???



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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2008, 11:56 AM
Tim Wunder
 
Posts: n/a
Default Re: How to send attachment with mail in AIX ???

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-05-2008, 11:56 AM
Tim Wunder
 
Posts: n/a
Default Re: How to send attachment with mail in AIX ???

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-05-2008, 11:56 AM
Michael Wuensche
 
Posts: n/a
Default Re: How to send attachment with mail in AIX ???

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com