uuencode for attachment giving problem

Hi All,

I am using unix's sendmail utility to send mails with attacments. I am using the uuencode command for attachments (zip).

When i send the mails to some account which is configured in the MS outook it opens/unzip the attachments with no problem.

But the same attachments seems to be getting corrupt while downloading from some other mails like the yahoo or hotnmail.

This problem is driving me crazy for a long time. Can anyone letme know the reason behind this issue.

I am using sun solaris 8

Regards
Manoj

I've got the same problem with mailx.

Even trying something like this isn't showing up as an attachment on web-based email (Gmail)

( echo "Email text"
echo "etc"
uuencode /path/to/sourcefile.txt sourcefile.txt
) | mailx -s "Email subject" "recipient@company.com"

Here's what we got working. The aim was to attach a file (defined here as $account_file).

    echo    "From: $\{from\_email_address\}"                              > $MSG_FILE
    echo    "To: $\{to\_email_address\}"                                              >> $MSG_FILE
    echo    "Subject: $\{Subject_Text\}"        >> $MSG_FILE
    echo    "Mime-Version: 1.0"                                             >> $MSG_FILE
    echo    'Content-Type: multipart/mixed; boundary="GvXjxJ\+pjyke8COw"'    >> $MSG_FILE
    echo    "Content-Disposition: inline"                                   >> $MSG_FILE
    echo    ""                                                              >> $MSG_FILE
    echo    "--GvXjxJ\+pjyke8COw"                                            >> $MSG_FILE
    echo    "Content-Type: text/plain"                                      >> $MSG_FILE
    echo    "Content-Disposition: inline"                                   >> $MSG_FILE
    echo    ""                                                              >> $MSG_FILE
    echo    "blah blah... \(email content\)"       >> $MSG_FILE
    echo    ""                                                              >> $MSG_FILE
    echo    ""                                                              >> $MSG_FILE
    echo    "--GvXjxJ\+pjyke8COw"                                            >> $MSG_FILE
    echo    "Content-Type: text/plain"                                      >> $MSG_FILE
    echo    "Content-Disposition: attachement; filename=$\{account_file\}"    >> $MSG_FILE
    echo    ""                                                              >> $MSG_FILE
    echo    ""                                                              >> $MSG_FILE
    cat     $account_file                                                   >> $MSG_FILE

    cat $MSG_FILE | /usr/lib/sendmail -t

Thanks for this method for emailing from Unix without uuencode! It solves a problem I've been struggling for weeks to solve.
God love you,
Paul