![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with uuencode | rjsha1 | Shell Programming and Scripting | 9 | 04-29-2009 08:15 AM |
| Binary txt file received when i use uuencode to send txt file as attachment | ash22 | UNIX for Dummies Questions & Answers | 2 | 04-24-2008 08:03 PM |
| send attachment without uuencode | panchpan | UNIX for Advanced & Expert Users | 3 | 03-14-2008 09:08 AM |
| Problem with uuencode | markms | Shell Programming and Scripting | 0 | 04-07-2006 12:13 PM |
| Uuencode problem in mail attachment | mvalonso | UNIX for Dummies Questions & Answers | 8 | 03-16-2006 01:38 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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" |
|
||||
|
making attachment visible via web mail
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, GavP!!
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 |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| mailx, mailx attachment |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|