The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
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 email from unix (AIX) with PDF attachment sunjup AIX 0 03-14-2008 04:12 PM
send email from unix with attachment chiru_h Shell Programming and Scripting 1 08-13-2007 01:18 PM
HELP!!! how to send PDF file as an attachment using mailx Brat Shell Programming and Scripting 1 05-17-2005 12:20 AM
Send a *.pdf file as a attachment scotty UNIX for Dummies Questions & Answers 3 01-15-2002 05:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-03-2002
lacca lacca is offline
Registered User
  
 

Join Date: Jul 2002
Posts: 2
How do I send a file as an attachment (gzip file) on a Unix system

Hi,

How do I send a file as an attachment (gzip file) on a Unix system ? Using sendmail.

Please help me.

  #2 (permalink)  
Old 07-03-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
If you do a search on this site for mail AND attachment, you should get your answer. If that doesn't help, then post back with specific problems.

Please also read the FAQ's and the rules (#5). Thanks.
  #3 (permalink)  
Old 07-03-2002
lacca lacca is offline
Registered User
  
 

Join Date: Jul 2002
Posts: 2
I'm trying to send a mail from unix with a attach gzip file with the follow parameters:

Content-Type: application/x-gzip; name="xpto.txt.gz"
Content-Transfer-Encoding: x-gzip
Content-Disposition: inline;filename="xpto.txt.gz"
MIME-Version: 1.0

When I receive the mail in outlook and I try to decompress the file with winzip, give an error telling the file is corrupt.

What is wrong with these parameters ?

Best regards.
  #4 (permalink)  
Old 07-03-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
It is probably a version problem between gzip and winzip.

I first sent a gzipped file to NT and tried to open it. I used gzip version 1.2.4 (very old Aug 93) and WinZip 7.0. WinZip didn't want to look at the file - gave me an option to use WinZip classic which did open the gzipped file.

I then used the commands found in the different questions answered in the past about mailing attachments. I mailed the gz file which showed up as an attachment in Outlook. I saved it to disk, opened up WinZip (used classic) and it worked fine.

Command used:
uuencode messages.0.gz newmess.txt |mailx -s"test" myself@mydomain.com
Sponsored Links
Closed Thread

Bookmarks

Tags
mailx, mailx attachment

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0