Unix Shell - Mailing attachments through unix

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > August 2007 > Mailing attachments through unix





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Mailing attachments through unix
pankaj_wolfhunter@yahoo.co.in

2007-08-23, 7:21 am

Hi All,

Greetings !!!

I need to mail test/ascii attachments through unix.

I am able to mail using uuencode ,mailx option.

The problem I am facing is that the the text attachments shows junk
characters along with notepad. It is compatible with all other text
editors(word pad/editplus/text pad). The attachment appears formatted
in a readable form in these cases.

The command that I used is:-

(echo "Hi All,"; uuencode $DIR/Report.zip Report.zip) | mailx -s
"Status Report" emailid@trial.com

Workarounds already tried:-

a) Tried using mutt/metasend but they are not installed and we won't
have permissions to install.

b) Sendmail is avilable but config files like sendmail.cf/sendmail.mc
need to be modified accordingly before using it. We again don't have
permissions here as they are under root.

If anybody could suggest some other appropriate command that is
compatible with all editiors or another solution for the above
problem, it would be really helpful.

TIA

Kenny McCormack

2007-08-23, 1:27 pm

In article <1187870671.751714.246460@q4g2000prc.googlegroups.com>,
pankaj_wolfhunter@yahoo.co.in <pankaj_wolfhunter@yahoo.co.in> wrote:
>Hi All,
>
>Greetings !!!
>
>I need to mail test/ascii attachments through unix.
>
>I am able to mail using uuencode ,mailx option.
>
>The problem I am facing is that the the text attachments shows junk
>characters along with notepad. It is compatible with all other text
>editors(word pad/editplus/text pad). The attachment appears formatted
>in a readable form in these cases.

(etc)

You're looking in the wrong place. The problem isn't on the sending side.
That's working fine.

The problem is Notepad. As you say, every other editor you've tried
works fine. That should tell you something.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com